Remove precondition checks

pull/4499/head
crobibero 4 years ago
parent 3b68ce1183
commit 7bf647bb94

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

Loading…
Cancel
Save