Skip to content

Commit

Permalink
Minor formatting (#24499)
Browse files Browse the repository at this point in the history
Add line breaks where necessary to maintain the consistency
  • Loading branch information
jaliyaudagedara authored Mar 26, 2021
1 parent 02575b3 commit 4456798
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Shared/Check.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ public static string NotEmpty([NotNull] string? value, [InvokerParameterName] st
if (value is null)
{
NotEmpty(parameterName, nameof(parameterName));

throw new ArgumentNullException(parameterName);
}

if (value.Trim().Length == 0)
{
NotEmpty(parameterName, nameof(parameterName));

throw new ArgumentException(AbstractionsStrings.ArgumentIsEmpty(parameterName));
}

Expand Down

0 comments on commit 4456798

Please sign in to comment.