diff --git a/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs b/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs index 8721eb5903cd1..72e4b2f09a51c 100644 --- a/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs +++ b/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs @@ -160,10 +160,7 @@ protected override string CommandLineArguments if (this.LogLevel != ChromiumDriverLogLevel.Default) { - if (Enum.IsDefined(typeof(ChromiumDriverLogLevel), this.LogLevel)) - { - argsBuilder.Append(string.Format(CultureInfo.InvariantCulture, " --log-level={0}", this.LogLevel.ToString().ToUpperInvariant())); - } + argsBuilder.Append(string.Format(CultureInfo.InvariantCulture, " --log-level={0}", this.LogLevel.ToString().ToUpperInvariant())); }