Skip to content

Commit

Permalink
Replaces "val == null" with "val is null"
Browse files Browse the repository at this point in the history
  • Loading branch information
iliar-turdushev committed Sep 20, 2024
1 parent 7249a68 commit 864e2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Polly.Core/ResilienceProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public bool TryGetValue<TValue>(ResiliencePropertyKey<TValue> key, [MaybeNullWhe
value = typedValue;
return true;
}
else if (val == null)
else if (val is null)
{
value = default!;
return true;
Expand Down

0 comments on commit 864e2eb

Please sign in to comment.