Skip to content

Commit

Permalink
Fix CA1805 warning (#2221)
Browse files Browse the repository at this point in the history
Suppress CA1805 warning.
  • Loading branch information
Fanatic-off authored Jul 21, 2024
1 parent 69e0e80 commit 4e05ea1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Polly/Polly.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ProjectType>Library</ProjectType>
<MutationScore>70</MutationScore>
<IncludePollyUsings>true</IncludePollyUsings>
<NoWarn>$(NoWarn);CA1010;CA1031;CA1051;CA1063;CA1064;CA1724;CA1805;CA1816;CA2211</NoWarn>
<NoWarn>$(NoWarn);CA1010;CA1031;CA1051;CA1063;CA1064;CA1724;CA1816;CA2211</NoWarn>
<NoWarn>$(NoWarn);S2223;S3215;S4039</NoWarn>
<!--Public API Analyzers: We do not need to fix these as it would break compatibility with released Polly versions-->
<NoWarn>$(NoWarn);RS0037;</NoWarn>
Expand Down
2 changes: 2 additions & 0 deletions src/Polly/RateLimit/LockFreeTokenBucketRateLimiter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ internal sealed class LockFreeTokenBucketRateLimiter : IRateLimiter
private long _addNextTokenAtTicks;

#if !NETSTANDARD2_0
#pragma warning disable CA1805
private SpinWait _spinner = default;
#pragma warning restore CA1805
#endif

/// <summary>
Expand Down

0 comments on commit 4e05ea1

Please sign in to comment.