Remove useless checks and dead code

This commit is contained in:
Bond_009
2025-01-22 17:31:52 +01:00
parent 5612d2187b
commit 47f798827b
10 changed files with 25 additions and 68 deletions

View File

@@ -1240,11 +1240,6 @@ namespace MediaBrowser.Controller.Entities
return false;
}
if (request.GenreIds.Count > 0)
{
return false;
}
if (request.VideoTypes.Length > 0)
{
return false;

View File

@@ -132,7 +132,7 @@ namespace MediaBrowser.Controller.Entities.TV
var series = Series;
if (series is not null)
{
return series.PresentationUniqueKey + "-" + (IndexNumber ?? 0).ToString("000", CultureInfo.InvariantCulture);
return series.PresentationUniqueKey + "-" + IndexNumber.Value.ToString("000", CultureInfo.InvariantCulture);
}
}