From 4824fd2657334b94f293c70d51f09ed947bb9615 Mon Sep 17 00:00:00 2001 From: Gerben Gaastra Date: Wed, 24 Jun 2020 17:00:40 +0200 Subject: [PATCH] Checking correct parameter for IsNullOrWhiteSpace --- Lib/Common/Shared/Protocol/HttpRequestMessageFactory.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/Common/Shared/Protocol/HttpRequestMessageFactory.cs b/Lib/Common/Shared/Protocol/HttpRequestMessageFactory.cs index dda42f0c3..9372dd9e2 100644 --- a/Lib/Common/Shared/Protocol/HttpRequestMessageFactory.cs +++ b/Lib/Common/Shared/Protocol/HttpRequestMessageFactory.cs @@ -200,10 +200,10 @@ internal static void AddMetadata(StorageRequestMessage request, IDictionaryThe metadata value. internal static void AddMetadata(StorageRequestMessage request, string name, string value) { - CommonUtility.AssertNotNull("value", value); - if (string.IsNullOrWhiteSpace(value)) + CommonUtility.AssertNotNull(nameof(name), name); + if (string.IsNullOrWhiteSpace(name)) { - throw new ArgumentException(SR.ArgumentEmptyError, value); + throw new ArgumentException(SR.ArgumentEmptyError, name); } request.Headers.Add("x-ms-meta-" + name, value);