Skip to content

Commit 346bc2b

Browse files
committed
feat(ci): add Husky pre-commit hooks to prevent CI failures
1 parent e2b1017 commit 346bc2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/routes/code.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,13 @@ async function makeJudge0Request(endpoint: string, options: RequestInit = {}) {
7070
statusCode = 503;
7171
}
7272

73+
clearTimeout(timeoutId);
7374
throw new HTTPException(statusCode, {
7475
message: clientMessage,
7576
});
7677
}
7778

79+
clearTimeout(timeoutId);
7880
return response;
7981
} catch (error) {
8082
clearTimeout(timeoutId);

0 commit comments

Comments
 (0)