Remove duplicated condition in history controller

This commit is contained in:
Bogdan 2023-10-17 18:45:36 +03:00 committed by Mark McDowall
parent 910c403d84
commit 3a99c2781b
1 changed files with 0 additions and 5 deletions

View File

@ -88,11 +88,6 @@ namespace Sonarr.Api.V3.History
pagingSpec.FilterExpressions.Add(h => seriesIds.Contains(h.SeriesId)); pagingSpec.FilterExpressions.Add(h => seriesIds.Contains(h.SeriesId));
} }
if (seriesIds != null && seriesIds.Any())
{
pagingSpec.FilterExpressions.Add(h => seriesIds.Contains(h.SeriesId));
}
return pagingSpec.ApplyToPage(h => _historyService.Paged(pagingSpec, languages, quality), h => MapToResource(h, includeSeries, includeEpisode)); return pagingSpec.ApplyToPage(h => _historyService.Paged(pagingSpec, languages, quality), h => MapToResource(h, includeSeries, includeEpisode));
} }