From 0cd114272fd31896dba3746a105dab64b2be98cb Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Tue, 11 Aug 2020 00:34:31 +0200 Subject: [PATCH] Don't call user operator for null check of HttpMethod value (#40306) --- src/libraries/System.Net.Http/src/System/Net/Http/HttpRequestMessage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Net.Http/src/System/Net/Http/HttpRequestMessage.cs b/src/libraries/System.Net.Http/src/System/Net/Http/HttpRequestMessage.cs index 83ee09f..5e1d9bb 100644 --- a/src/libraries/System.Net.Http/src/System/Net/Http/HttpRequestMessage.cs +++ b/src/libraries/System.Net.Http/src/System/Net/Http/HttpRequestMessage.cs @@ -167,7 +167,7 @@ namespace System.Net.Http [MemberNotNull(nameof(_version))] private void InitializeValues(HttpMethod method, Uri? requestUri) { - if (method == null) + if (method is null) { throw new ArgumentNullException(nameof(method)); } -- 2.7.4