Skip to content

Commit e2023dc

Browse files
committed
fix: remove redundant clearTimeout in catch block
1 parent 64f7b84 commit e2023dc

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

apps/sim/tools/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,6 @@ async function executeToolRequest(
639639
signal: controller.signal,
640640
})
641641
} catch (error) {
642-
if (timeoutId) clearTimeout(timeoutId)
643642
// Convert AbortError to a timeout error message
644643
if (error instanceof Error && error.name === 'AbortError') {
645644
throw new Error(`Request timed out after ${requestParams.timeout}ms`)

0 commit comments

Comments
 (0)