Skip to content

Commit

Permalink
Update StringsExtensions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Dec 20, 2024
1 parent d3e266f commit 7829acc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public static string CleanUrlPath(this string? url)
}

[DebuggerStepThrough]
public static bool IsLocalUrl([NotNullWhen(false)] this string? url)
public static bool IsLocalUrl([NotNullWhen(true)] this string? url)
{
// This implementation is a copy of a https://github.com/dotnet/aspnetcore/blob/3f1acb59718cadf111a0a796681e3d3509bb3381/src/Mvc/Mvc.Core/src/Routing/UrlHelperBase.cs#L315
// We originally copied that code to avoid a dependency, but we could potentially remove this entirely by switching to the Microsoft.NET.Sdk.Web sdk.
Expand Down

0 comments on commit 7829acc

Please sign in to comment.