浏览代码

Modify to use correct logic before creating directory

Address review comments.
PloughPuff 6 年之前
父节点
当前提交
529d804414
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Jellyfin.Server/Program.cs

+ 2 - 2
Jellyfin.Server/Program.cs

@@ -185,7 +185,7 @@ namespace Jellyfin.Server
                 }
             }
 
-            if (string.IsNullOrEmpty(configDir))
+            if (!string.IsNullOrEmpty(configDir))
             {
                 Directory.CreateDirectory(configDir);
             }
@@ -204,7 +204,7 @@ namespace Jellyfin.Server
                 }
             }
 
-            if (string.IsNullOrEmpty(logDir))
+            if (!string.IsNullOrEmpty(logDir))
             {
                 Directory.CreateDirectory(logDir);
             }