mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Changed string.Length == 0 to string.IsNullOrEmpty in case of null
This commit is contained in:
parent
480dd66428
commit
d4201f812c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue