diff options
| author | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-26 23:09:07 +0100 |
|---|---|---|
| committer | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-28 22:10:50 +0100 |
| commit | b9a111432a8c85cd6cd2bb6c80ba3acd8a27409d (patch) | |
| tree | e954366643b196ba8629be9a4b989def2a3d05a8 /Emby.Server.Implementations/IO/MbLinkShortcutHandler.cs | |
| parent | 581a7fe078002785b9ba628ec139a42d678cdf25 (diff) | |
Unwrapped all /(Write|Read)All(Text|Bytes)/ functions.
Diffstat (limited to 'Emby.Server.Implementations/IO/MbLinkShortcutHandler.cs')
| -rw-r--r-- | Emby.Server.Implementations/IO/MbLinkShortcutHandler.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/IO/MbLinkShortcutHandler.cs b/Emby.Server.Implementations/IO/MbLinkShortcutHandler.cs index a306f94b3..5e5e91bb3 100644 --- a/Emby.Server.Implementations/IO/MbLinkShortcutHandler.cs +++ b/Emby.Server.Implementations/IO/MbLinkShortcutHandler.cs @@ -24,7 +24,7 @@ namespace Emby.Server.Implementations.IO if (string.Equals(Path.GetExtension(shortcutPath), ".mblink", StringComparison.OrdinalIgnoreCase)) { - var path = _fileSystem.ReadAllText(shortcutPath); + var path = File.ReadAllText(shortcutPath); return _fileSystem.NormalizePath(path); } @@ -44,7 +44,7 @@ namespace Emby.Server.Implementations.IO throw new ArgumentNullException(nameof(targetPath)); } - _fileSystem.WriteAllText(shortcutPath, targetPath); + File.WriteAllText(shortcutPath, targetPath); } } } |
