From bfed68b86158f5c89bd5e5d01902df4c97d852e3 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Fri, 23 Sep 2022 15:34:07 -0400 Subject: [PATCH] Remove always-false UITest check 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; }