Browse Source

Fixed inlining local-variable artifact.

Erwin de Haan 6 years ago
parent
commit
1d1d7e8a37
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs

+ 2 - 3
Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs

@@ -209,9 +209,8 @@ namespace Emby.Server.Implementations.AppBase
         protected void EnsureWriteAccess(string path)
         protected void EnsureWriteAccess(string path)
         {
         {
             var file = Path.Combine(path, Guid.NewGuid().ToString());
             var file = Path.Combine(path, Guid.NewGuid().ToString());
-
-            string text = string.Empty;
-            File.WriteAllText(file, text);
+            
+            File.WriteAllText(file, string.Empty);
             FileSystem.DeleteFile(file);
             FileSystem.DeleteFile(file);
         }
         }