Allow defaults to be null when constructiing TemplateMatcher

This commit is contained in:
Marc Climent 2015-10-23 09:51:47 +02:00
parent 1fd284c87f
commit 53fd5b5f54
1 changed files with 0 additions and 5 deletions

View File

@ -25,11 +25,6 @@ namespace Microsoft.AspNet.Routing.Template
throw new ArgumentNullException(nameof(template)); throw new ArgumentNullException(nameof(template));
} }
if (defaults == null)
{
throw new ArgumentNullException(nameof(defaults));
}
Template = template; Template = template;
Defaults = defaults ?? RouteValueDictionary.Empty; Defaults = defaults ?? RouteValueDictionary.Empty;
} }