aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-01-27 15:48:26 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-01-28 22:10:52 +0100
commit1d1d7e8a3767cf0b13d6aa630bc587f4dc43b698 (patch)
treef9879c7168eed1de45ea0144e300e7483ef2b360 /Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
parentd3afa531913d94e541969f008d8065603579d9af (diff)
Fixed inlining local-variable artifact.
Diffstat (limited to 'Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs')
-rw-r--r--Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs b/Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
index ec3ca8ead..6da76ee7e 100644
--- a/Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
+++ b/Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
@@ -209,9 +209,8 @@ namespace Emby.Server.Implementations.AppBase
protected void EnsureWriteAccess(string path)
{
var file = Path.Combine(path, Guid.NewGuid().ToString());
-
- string text = string.Empty;
- File.WriteAllText(file, text);
+
+ File.WriteAllText(file, string.Empty);
FileSystem.DeleteFile(file);
}