Use `string.IsNullOrEmpty()` instead of empty string check.
This commit is contained in:
parent
60fd1f28b9
commit
0bfebf7fac
|
|
@ -66,7 +66,7 @@ namespace Microsoft.AspNet.Mvc
|
|||
|
||||
private string RemovePeriodIfPresent(string format)
|
||||
{
|
||||
if (format == "")
|
||||
if (string.IsNullOrEmpty(format))
|
||||
{
|
||||
throw new ArgumentException(Resources.ArgumentCannotBeNullOrEmpty, nameof(format));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue