Skip to content

Commit 543c303

Browse files
committed
refactor: use nameof operator for argument name in exception throwing
1 parent cb348bf commit 543c303

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CodeLineCounter/Utils/CoreUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static int CheckInputUserChoice(string? inputFromConsole, int solutionCou
9898

9999
if (string.IsNullOrWhiteSpace(input))
100100
{
101-
throw new ArgumentNullException("inputFromConsole", "No input provided. Please enter a valid number.");
101+
throw new ArgumentNullException(nameof(inputFromConsole), "No input provided. Please enter a valid number.");
102102
}
103103

104104
if (!int.TryParse(input, out choice))

0 commit comments

Comments
 (0)