mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Address review comments
This commit is contained in:
parent
767a42fbdb
commit
b8f42573c4
@ -380,7 +380,6 @@ namespace Emby.Server.Implementations.IO
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Avoid implicitly captured closure
|
|
||||||
CreateRefresher(path);
|
CreateRefresher(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -414,7 +413,8 @@ namespace Emby.Server.Implementations.IO
|
|||||||
}
|
}
|
||||||
|
|
||||||
// They are siblings. Rebase the refresher to the parent folder.
|
// They are siblings. Rebase the refresher to the parent folder.
|
||||||
if (parentPath is not null && string.Equals(parentPath, Path.GetDirectoryName(refresher.Path), StringComparison.Ordinal))
|
if (parentPath is not null
|
||||||
|
&& Path.GetDirectoryName(refresher.Path.AsSpan()).Equals(parentPath, StringComparison.Ordinal))
|
||||||
{
|
{
|
||||||
refresher.ResetPath(parentPath, path);
|
refresher.ResetPath(parentPath, path);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user