浏览代码

Fixed inlining local-variable artifact.

Erwin de Haan 6 年之前
父节点
当前提交
1d1d7e8a37
共有 1 个文件被更改,包括 2 次插入3 次删除
  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)
         {
             var file = Path.Combine(path, Guid.NewGuid().ToString());
-
-            string text = string.Empty;
-            File.WriteAllText(file, text);
+            
+            File.WriteAllText(file, string.Empty);
             FileSystem.DeleteFile(file);
         }