Remove precondition checks

This commit is contained in:
crobibero 2020-11-17 09:38:50 -07:00
parent 3b68ce1183
commit 7bf647bb94

View File

@ -412,13 +412,9 @@ namespace Jellyfin.Api.Controllers
query.IsVirtualItem = false; query.IsVirtualItem = false;
} }
if (locationTypes.Length != 0) if (locationTypes.Length > 0 && locationTypes.Length < 4)
{ {
var requestedLocationTypes = locationTypes; query.IsVirtualItem = locationTypes.Contains(LocationType.Virtual);
if (requestedLocationTypes.Length > 0 && requestedLocationTypes.Length < 4)
{
query.IsVirtualItem = requestedLocationTypes.Contains(LocationType.Virtual);
}
} }
// Min official rating // Min official rating