aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPloughPuff <ploughpuff@protonmail.com>2019-01-18 18:11:42 +0000
committerPloughPuff <ploughpuff@protonmail.com>2019-01-18 18:11:42 +0000
commit582226c13366a801648e94b421f6a7cb0fe0141b (patch)
treefe907b326e90354dc32323c5a3524d0ed65491ae
parent529d8044142415f1a8f0559c057bcf292e6bfc67 (diff)
Cause exception if empty string used for config or log folders
-rw-r--r--Jellyfin.Server/Program.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs
index 343ef0bc3..46a80b492 100644
--- a/Jellyfin.Server/Program.cs
+++ b/Jellyfin.Server/Program.cs
@@ -185,7 +185,7 @@ namespace Jellyfin.Server
}
}
- if (!string.IsNullOrEmpty(configDir))
+ if (configDir != null)
{
Directory.CreateDirectory(configDir);
}
@@ -204,7 +204,7 @@ namespace Jellyfin.Server
}
}
- if (!string.IsNullOrEmpty(logDir))
+ if (logDir != null)
{
Directory.CreateDirectory(logDir);
}