From 864e2ebc66a011dec2f8a15741b4b9ff30b8f02e Mon Sep 17 00:00:00 2001 From: Iliar Turdushev Date: Fri, 20 Sep 2024 19:31:19 +0200 Subject: [PATCH] Replaces "val == null" with "val is null" --- src/Polly.Core/ResilienceProperties.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Polly.Core/ResilienceProperties.cs b/src/Polly.Core/ResilienceProperties.cs index e8cd9cfbb62..6866be4a190 100644 --- a/src/Polly.Core/ResilienceProperties.cs +++ b/src/Polly.Core/ResilienceProperties.cs @@ -27,7 +27,7 @@ public bool TryGetValue(ResiliencePropertyKey key, [MaybeNullWhe value = typedValue; return true; } - else if (val == null) + else if (val is null) { value = default!; return true;