From e81efa7a46a118d159c290277c3b939f51be6233 Mon Sep 17 00:00:00 2001 From: Antoine Rybacki <15911822+Lifeismana@users.noreply.github.com> Date: Sat, 18 Nov 2023 17:07:23 +0100 Subject: [PATCH] rectify parameters order --- DepotDownloader/Util.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DepotDownloader/Util.cs b/DepotDownloader/Util.cs index eccca488..d249c1fc 100644 --- a/DepotDownloader/Util.cs +++ b/DepotDownloader/Util.cs @@ -136,7 +136,7 @@ namespace DepotDownloader public static async Task InvokeAsync(IEnumerable> taskFactories, int maxDegreeOfParallelism) { ArgumentNullException.ThrowIfNull(taskFactories); - ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(0, maxDegreeOfParallelism); + ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(maxDegreeOfParallelism, 0); var queue = taskFactories.ToArray();