Skip string.Equals in FastPathTokenizer (#9579)

This commit is contained in:
Ben Adams 2019-04-22 18:06:21 +01:00 committed by Andrew Stanton-Nurse
parent 48c97b425e
commit f4972dc6b6
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ namespace Microsoft.AspNetCore.Routing.Matching
public static int Tokenize(string path, Span<PathSegment> segments)
{
// This can happen in test scenarios.
if (path == string.Empty)
if (string.IsNullOrEmpty(path))
{
return 0;
}