Skip to content

Commit af58abe

Browse files
committed
Removing unneeded verification. Done at compile time.
1 parent 7a35455 commit af58abe

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

dotnet/src/webdriver/Chromium/ChromiumDriverService.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,7 @@ protected override string CommandLineArguments
160160

161161
if (this.LogLevel != ChromiumDriverLogLevel.Default)
162162
{
163-
if (Enum.IsDefined(typeof(ChromiumDriverLogLevel), this.LogLevel))
164-
{
165-
argsBuilder.Append(string.Format(CultureInfo.InvariantCulture, " --log-level={0}", this.LogLevel.ToString().ToUpperInvariant()));
166-
}
163+
argsBuilder.Append(string.Format(CultureInfo.InvariantCulture, " --log-level={0}", this.LogLevel.ToString().ToUpperInvariant()));
167164
}
168165

169166

0 commit comments

Comments
 (0)