diff --git a/src/Mvc/Mvc.Core/src/Routing/HttpMethodAttribute.cs b/src/Mvc/Mvc.Core/src/Routing/HttpMethodAttribute.cs
index cdf2138204..eb7af924bd 100644
--- a/src/Mvc/Mvc.Core/src/Routing/HttpMethodAttribute.cs
+++ b/src/Mvc/Mvc.Core/src/Routing/HttpMethodAttribute.cs
@@ -17,23 +17,19 @@ namespace Microsoft.AspNetCore.Mvc.Routing
///
/// Creates a new with the given
/// set of HTTP methods.
- /// The set of supported HTTP methods.
+ /// The set of supported HTTP methods. May not be null.
///
public HttpMethodAttribute(IEnumerable httpMethods)
: this(httpMethods, null)
{
- if (httpMethods == null)
- {
- throw new ArgumentNullException(nameof(httpMethods));
- }
}
///
/// Creates a new with the given
/// set of HTTP methods an the given route template.
///
- /// The set of supported methods.
- /// The route template. May not be null.
+ /// The set of supported methods. May not be null.
+ /// The route template.
public HttpMethodAttribute(IEnumerable httpMethods, string template)
{
if (httpMethods == null)
@@ -69,4 +65,4 @@ namespace Microsoft.AspNetCore.Mvc.Routing
///
public string Name { get; set; }
}
-}
\ No newline at end of file
+}