Skip string.Equals in FastPathTokenizer (#9579)
This commit is contained in:
parent
48c97b425e
commit
f4972dc6b6
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue