Skip to content

Commit 7883e13

Browse files
fix: use IsNullOrWhiteSpace instead of just checking for null or empty
1 parent 6c960dd commit 7883e13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Geta.NotFoundHandler/Core/Redirects/CustomRedirectCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private CustomRedirect FindInternal(string url)
124124
foreach (var redirectPair in redirectsZA)
125125
{
126126
var oldUrl = redirectPair.Key;
127-
if (string.IsNullOrEmpty(oldUrl))
127+
if (string.IsNullOrWhiteSpace(oldUrl))
128128
{
129129
continue;
130130
}

0 commit comments

Comments
 (0)