From 8bb7f8e6caf7eb304e0602c83ed9c6fd565d2b0b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Dec 2025 15:45:44 +0000 Subject: [PATCH] Remove redundant condition check in waiting-timeout The condition `timeout <= 0` is redundant since the logic above (lines 30-35) already ensures that timeout is either a positive number or undefined. Addresses comment 2599097978. Co-authored-by: arthurfiorette <47537704+arthurfiorette@users.noreply.github.com> --- src/util/waiting-timeout.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/waiting-timeout.ts b/src/util/waiting-timeout.ts index b7afbf1..1cd9aee 100644 --- a/src/util/waiting-timeout.ts +++ b/src/util/waiting-timeout.ts @@ -35,7 +35,7 @@ export function createWaitingTimeout( : undefined; // Only create timeout if we have a valid value - if (!timeout || timeout <= 0) { + if (!timeout) { return undefined; }