Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 3ea3b60

Browse files
committed
Cleanup
1 parent fe56f19 commit 3ea3b60

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/Microsoft.AspNet.Http.Abstractions/QueryString.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,18 +163,8 @@ public static QueryString Create(IEnumerable<KeyValuePair<string, StringValues>>
163163
bool first = true;
164164
foreach (var pair in parameters)
165165
{
166-
if (pair.Key == null)
167-
{
168-
throw new ArgumentNullException(nameof(pair.Key));
169-
}
170-
171166
foreach (var value in pair.Value)
172167
{
173-
if (value == null)
174-
{
175-
throw new ArgumentNullException(nameof(value));
176-
}
177-
178168
builder.Append(first ? "?" : "&");
179169
first = false;
180170
builder.Append(UrlEncoder.Default.Encode(pair.Key));

test/Microsoft.AspNet.Html.Abstractions.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"dependencies": {
33
"Microsoft.AspNet.Html.Abstractions": "1.0.0-*",
44
"Microsoft.AspNet.Testing": "1.0.0-*",
5-
"Microsoft.Extensions.WebEncoders.Tests" : "1.0.0-*",
5+
"Microsoft.Extensions.WebEncoders": "1.0.0-*",
66
"xunit.runner.aspnet": "2.0.0-aspnet-*"
77
},
88
"commands": {

0 commit comments

Comments
 (0)