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>
This commit is contained in:
copilot-swe-agent[bot] 2025-12-08 15:45:44 +00:00
parent 2fc0f2df4a
commit 8bb7f8e6ca

View File

@ -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;
}