diff options
| author | PloughPuff <ploughpuff@protonmail.com> | 2019-01-18 18:11:42 +0000 |
|---|---|---|
| committer | PloughPuff <ploughpuff@protonmail.com> | 2019-01-18 18:11:42 +0000 |
| commit | 582226c13366a801648e94b421f6a7cb0fe0141b (patch) | |
| tree | fe907b326e90354dc32323c5a3524d0ed65491ae | |
| parent | 529d8044142415f1a8f0559c057bcf292e6bfc67 (diff) | |
Cause exception if empty string used for config or log folders
| -rw-r--r-- | Jellyfin.Server/Program.cs | 4 |
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); } |
