diff --git a/src/.idea/.idea.NzbDrone/.idea/contentModel.xml b/src/.idea/.idea.NzbDrone/.idea/contentModel.xml index 7bb9c32d7..5f78a1506 100644 --- a/src/.idea/.idea.NzbDrone/.idea/contentModel.xml +++ b/src/.idea/.idea.NzbDrone/.idea/contentModel.xml @@ -1,24 +1,21 @@ - + - - - + + + - - - - - - - + + + + - + @@ -70,10 +67,10 @@ - - - - + + + + @@ -3328,7 +3325,7 @@ - + @@ -3340,7 +3337,7 @@ - + diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/RequiredIndexerFlagsSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/RequiredIndexerFlagsSpecification.cs index 0f421b74c..d47cf6050 100644 --- a/src/NzbDrone.Core/DecisionEngine/Specifications/RequiredIndexerFlagsSpecification.cs +++ b/src/NzbDrone.Core/DecisionEngine/Specifications/RequiredIndexerFlagsSpecification.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Linq; using NLog; using NzbDrone.Core.Datastore; @@ -46,13 +47,12 @@ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCrit var requiredFlags = torrentIndexerSettings.RequiredFlags; var requiredFlag = (IndexerFlags) 0; - var enumerable = requiredFlags.ToList(); - if (requiredFlags == null || !enumerable.Any()) + if (requiredFlags == null || !requiredFlags.Any()) { return Decision.Accept(); } - foreach (var flag in enumerable) + foreach (var flag in requiredFlags) { if (torrentInfo.IndexerFlags.HasFlag((IndexerFlags)flag)) {