diff options
| author | Ikomhoog <jannick.schalkwijk@hotmail.com> | 2021-03-08 11:02:51 +0100 |
|---|---|---|
| committer | Ikomhoog <jannick.schalkwijk@hotmail.com> | 2021-03-08 11:02:51 +0100 |
| commit | d4201f812cac5d1b5f4cdd618770df421b3fad70 (patch) | |
| tree | 4e1ac291983894507bc52a64ebd851ce1f7a62b0 /Emby.Server.Implementations/Library/PathExtensions.cs | |
| parent | 480dd66428e2a8bf76c0747256f2e99b15aae212 (diff) | |
Changed string.Length == 0 to string.IsNullOrEmpty in case of null
Diffstat (limited to 'Emby.Server.Implementations/Library/PathExtensions.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/PathExtensions.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/PathExtensions.cs b/Emby.Server.Implementations/Library/PathExtensions.cs index d9e20e19a..7dcc925c2 100644 --- a/Emby.Server.Implementations/Library/PathExtensions.cs +++ b/Emby.Server.Implementations/Library/PathExtensions.cs @@ -63,7 +63,7 @@ namespace Emby.Server.Implementations.Library { newPath = null; - if (path.Length == 0 || subPath.Length == 0 || newSubPath.Length == 0 || subPath.Length > path.Length) + if (string.IsNullOrEmpty(path) || string.IsNullOrEmpty(subPath) || string.IsNullOrEmpty(newSubPath) || subPath.Length > path.Length) { return false; } |
