Changes per NotNull PR comments

This commit is contained in:
Pranav K 2015-09-21 17:22:27 -07:00
parent 498d209949
commit 00b6e71e31
2 changed files with 1 additions and 7 deletions

View File

@ -19,15 +19,11 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Validation
string ruleName)
: base(attribute)
{
if (ruleName == null)
{
throw new ArgumentNullException(nameof(ruleName));
}
if (string.IsNullOrEmpty(ruleName))
{
throw new ArgumentException(Resources.ArgumentCannotBeNullOrEmpty, nameof(ruleName));
}
RuleName = ruleName;
}

View File

@ -2,8 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Mvc.ModelBinding.Validation
{