Enable TreatWarningsAsErrors for Jellyfin.Server.Implementations in Release mode

This commit is contained in:
Bond_009
2020-05-29 11:28:19 +02:00
parent 02624c9df8
commit 4748105dce
69 changed files with 291 additions and 401 deletions

View File

@@ -1,3 +1,5 @@
#pragma warning disable CS1591
using System.Collections.Generic;
using Emby.Server.Implementations.Images;
using MediaBrowser.Common.Configuration;
@@ -75,14 +77,14 @@ namespace Emby.Server.Implementations.UserViews
return false;
}
var folder = item as Folder;
if (folder != null)
if (item is Folder folder)
{
if (folder.IsTopParent)
{
return false;
}
}
return true;
//return item.SourceType == SourceType.Library;
}