Skip to content

Commit

Permalink
Fix null check
Browse files Browse the repository at this point in the history
Check the value, not its name (which is never null). Found by new CA2264 analyser in .NET 9 SDK.
  • Loading branch information
martincostello committed Sep 18, 2024
1 parent c5c8fec commit d4c14d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PollyDemos/Demo11_MultipleConcurrencyLimiters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class Demo11_MultipleConcurrencyLimiters : ConcurrencyLimiterDemoBase

public override async Task ExecuteAsync(CancellationToken externalCancellationToken, IProgress<DemoProgress> progress)
{
ArgumentNullException.ThrowIfNull(nameof(progress));
ArgumentNullException.ThrowIfNull(progress);

PrintHeader(progress);
TotalRequests = 0;
Expand Down

0 comments on commit d4c14d1

Please sign in to comment.