From 3a99c2781b5db3e8495ab177bc0eecfbbcc8cda9 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 17 Oct 2023 18:45:36 +0300 Subject: [PATCH] Remove duplicated condition in history controller --- src/Sonarr.Api.V3/History/HistoryController.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Sonarr.Api.V3/History/HistoryController.cs b/src/Sonarr.Api.V3/History/HistoryController.cs index 3fb8b1cf4..991b2bb21 100644 --- a/src/Sonarr.Api.V3/History/HistoryController.cs +++ b/src/Sonarr.Api.V3/History/HistoryController.cs @@ -88,11 +88,6 @@ namespace Sonarr.Api.V3.History 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)); }