diff --git a/src/Polly/Polly.csproj b/src/Polly/Polly.csproj index ef9bae12f9a..6326a634f1e 100644 --- a/src/Polly/Polly.csproj +++ b/src/Polly/Polly.csproj @@ -11,7 +11,7 @@ $(NoWarn);IDE1006;CA1062;S107;CA1068;S4039;CA1000;CA1063;CA1031;CA1051 $(NoWarn);CA2211;S2223;CA1032;CA1815;CA1816;S4457;SA1615;CA1033 $(NoWarn);S4023;CA1010;S3442;CA1064;SA1649;SA1625;SA1623;SA1118 - $(NoWarn);S3253;S3971;S6605;CA1724;CA1716;SA1108;CA1710;S4049;S3246 + $(NoWarn);S3253;S3971;CA1724;CA1716;SA1108;CA1710;S4049;S3246 $(NoWarn);CA1805 diff --git a/src/Polly/ResultPredicates.cs b/src/Polly/ResultPredicates.cs index 63b02ddec3a..093c139d65a 100644 --- a/src/Polly/ResultPredicates.cs +++ b/src/Polly/ResultPredicates.cs @@ -24,7 +24,7 @@ public bool AnyMatch(TResult result) if (_predicates == null) return false; - return _predicates.Any(predicate => predicate(result)); + return _predicates.Exists(predicate => predicate(result)); } ///