Skip to content

Commit

Permalink
Enable S6605
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdmitrij committed Apr 25, 2024
1 parent f32222b commit e013fa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Polly/Polly.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<NoWarn>$(NoWarn);IDE1006;CA1062;S107;CA1068;S4039;CA1000;CA1063;CA1031;CA1051</NoWarn>
<NoWarn>$(NoWarn);CA2211;S2223;CA1032;CA1815;CA1816;S4457;SA1615;CA1033</NoWarn>
<NoWarn>$(NoWarn);S4023;CA1010;S3442;CA1064;SA1649;SA1625;SA1623;SA1118</NoWarn>
<NoWarn>$(NoWarn);S3253;S3971;S6605;CA1724;CA1716;SA1108;CA1710;S4049;S3246</NoWarn>
<NoWarn>$(NoWarn);S3253;S3971;CA1724;CA1716;SA1108;CA1710;S4049;S3246</NoWarn>
<NoWarn>$(NoWarn);CA1805</NoWarn>

<!--Pulic API Analyzers: We do not need to fix these as it would break compatibility with released Polly versions-->
Expand Down
2 changes: 1 addition & 1 deletion src/Polly/ResultPredicates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/// <summary>
Expand Down

0 comments on commit e013fa4

Please sign in to comment.