Преглед на файлове

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);
             }