From 1f78b08475540f70f1e4307e537d9fc1119afe80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Cant=C3=BA?= Date: Fri, 19 Apr 2024 14:53:46 -0500 Subject: [PATCH] Remove duplicated check added on conflicting merge --- .../src/System/Threading/Tasks/Task.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs index 3e57afadcd3f8b..ab532be3e3da4e 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs @@ -4743,11 +4743,6 @@ public static void WaitAll(/*params*/ ReadOnlySpan tasks) [MethodImpl(MethodImplOptions.NoOptimization)] // this is needed for the parallel debugger public static bool WaitAll(Task[] tasks, TimeSpan timeout) { - if (tasks is null) - { - ThrowHelper.ThrowArgumentNullException(ExceptionArgument.tasks); - } - long totalMilliseconds = (long)timeout.TotalMilliseconds; if (totalMilliseconds is < -1 or > int.MaxValue) {