Merge pull request #7121 from Bond-009/warn57

This commit is contained in:
Cody Robibero
2022-01-05 16:18:08 -07:00
committed by GitHub
4 changed files with 10 additions and 10 deletions

View File

@@ -1444,7 +1444,7 @@ namespace Emby.Server.Implementations.Library
for (int i = 0; i < len; i++)
{
parents[i] = GetItemById(ancestorIds[i]);
if (!(parents[i] is ICollectionFolder || parents[i] is UserView))
if (parents[i] is not (ICollectionFolder or UserView))
{
return;
}