Skip to content

Commit 17131b7

Browse files
committed
fix: add eslint disable comments for empty catch blocks
1 parent abbe635 commit 17131b7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/runtime/LocalRuntime.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ export class LocalRuntime implements Runtime {
9191
// Register cleanup for streams when process exits
9292
// CRITICAL: These streams MUST be cancelled when process exits to prevent hangs
9393
disposable.addCleanup(() => {
94+
// eslint-disable-next-line @typescript-eslint/no-empty-function
9495
stdout.cancel().catch(() => {});
96+
// eslint-disable-next-line @typescript-eslint/no-empty-function
9597
stderr.cancel().catch(() => {});
9698
});
9799

@@ -169,7 +171,7 @@ export class LocalRuntime implements Runtime {
169171
}, options.timeout * 1000);
170172

171173
// Clear timeout if process exits naturally
172-
exitCode.finally(() => clearTimeout(timeoutHandle));
174+
void exitCode.finally(() => clearTimeout(timeoutHandle));
173175
}
174176

175177
return { stdout, stderr, stdin, exitCode, duration };

src/runtime/SSHRuntime.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ export class SSHRuntime implements Runtime {
185185
disposable.addCleanup(() => {
186186
// Cancel streams to immediately signal EOF
187187
// Use catch to ignore errors if streams are already closed
188+
// eslint-disable-next-line @typescript-eslint/no-empty-function
188189
stdout.cancel().catch(() => {});
190+
// eslint-disable-next-line @typescript-eslint/no-empty-function
189191
stderr.cancel().catch(() => {});
190192
// Don't abort stdin - it's already closed/aborted by bash tool
191193
});
@@ -234,7 +236,7 @@ export class SSHRuntime implements Runtime {
234236
}, options.timeout * 1000);
235237

236238
// Clear timeout if process exits naturally
237-
exitCode.finally(() => clearTimeout(timeoutHandle));
239+
void exitCode.finally(() => clearTimeout(timeoutHandle));
238240

239241
return { stdout, stderr, stdin, exitCode, duration };
240242
}

0 commit comments

Comments
 (0)