Skip to content

Commit 5b33f43

Browse files
committed
C#: Use nameof
1 parent f846699 commit 5b33f43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/extractor/Semmle.Util/Logger.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private static string GetSeverityPrefix(Severity s)
129129
case Severity.Error:
130130
return "Error: ";
131131
default:
132-
throw new ArgumentOutOfRangeException("s");
132+
throw new ArgumentOutOfRangeException(nameof(s));
133133
}
134134
}
135135

@@ -188,7 +188,7 @@ public static bool Includes(this Verbosity v, Severity s)
188188
case Severity.Error:
189189
return v >= Verbosity.Error;
190190
default:
191-
throw new ArgumentOutOfRangeException("s");
191+
throw new ArgumentOutOfRangeException(nameof(s));
192192
}
193193
}
194194
}

0 commit comments

Comments
 (0)