Skip to content

Commit

Permalink
Shorten statement
Browse files Browse the repository at this point in the history
  • Loading branch information
nurhafiz committed May 2, 2024
1 parent bb9a706 commit 8cb3326
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Toimik.UrlNormalization/UrlNormalizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ public virtual string Normalize(string url, string? baseUrl = null)
}

tryCount++;
if (baseUrl == null)
{
throw new ArgumentNullException(nameof(baseUrl));
}
ArgumentNullException.ThrowIfNull(baseUrl);

// Prefix the url with the base URL as it is determined that the former is relative. A
// slash is added between them in case the url is not prefixed with one. Multiple
Expand Down

0 comments on commit 8cb3326

Please sign in to comment.