From b06e4403db5d18ed7f114a04f13c10cddc8a218f Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Fri, 23 Sep 2022 17:24:34 -0400 Subject: [PATCH] Remove always-false UITest check (#1904) startUpTimeout can never be null. It is impossible. Fixes build warning --- src/CalculatorUITestFramework/WindowsDriverServiceBuilder.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/CalculatorUITestFramework/WindowsDriverServiceBuilder.cs b/src/CalculatorUITestFramework/WindowsDriverServiceBuilder.cs index bdf60574..dec24fe0 100644 --- a/src/CalculatorUITestFramework/WindowsDriverServiceBuilder.cs +++ b/src/CalculatorUITestFramework/WindowsDriverServiceBuilder.cs @@ -45,10 +45,6 @@ namespace CalculatorUITestFramework public WindowsDriverServiceBuilder WithStartUpTimeOut(TimeSpan startUpTimeout) { - if (startUpTimeout == null) - { - throw new ArgumentNullException("A startup timeout should not be NULL"); - } this.StartUpTimeout = startUpTimeout; return this; }