From 4456798e719a53095fcb92b2ad5fdf6b3a917ce9 Mon Sep 17 00:00:00 2001 From: Jaliya Udagedara Date: Sat, 27 Mar 2021 04:14:23 +1300 Subject: [PATCH] Minor formatting (#24499) Add line breaks where necessary to maintain the consistency --- src/Shared/Check.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Shared/Check.cs b/src/Shared/Check.cs index cd23c21181d..3b2c0cbb994 100644 --- a/src/Shared/Check.cs +++ b/src/Shared/Check.cs @@ -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)); }