Use `string.IsNullOrEmpty()` instead of empty string check.

This commit is contained in:
Henk Mollema 2015-04-23 00:15:18 +02:00
parent 60fd1f28b9
commit 0bfebf7fac
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}