mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-23 15:30:56 -04:00
Remove precondition checks
This commit is contained in:
parent
3b68ce1183
commit
7bf647bb94
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user