Modify to use correct logic before creating directory

Address review comments.
pull/702/head
PloughPuff 6 years ago
parent 04d03c5cf9
commit 529d804414

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

Loading…
Cancel
Save