fix: resolve lint errors (unused vars, imports, formatting)
- Prefix unused test variables with underscore - Remove unused piSpec import and idleMs class member - Fix import ordering and code formatting
This commit is contained in:
committed by
Peter Steinberger
parent
518af0ef24
commit
4a35bcec21
@@ -1,8 +1,6 @@
|
||||
import { type ChildProcessWithoutNullStreams, spawn } from "node:child_process";
|
||||
import readline from "node:readline";
|
||||
|
||||
import { piSpec } from "../agents/pi.js";
|
||||
|
||||
type TauRpcOptions = {
|
||||
argv: string[];
|
||||
cwd?: string;
|
||||
@@ -24,7 +22,6 @@ class TauRpcClient {
|
||||
private stderr = "";
|
||||
private buffer: string[] = [];
|
||||
private idleTimer: NodeJS.Timeout | null = null;
|
||||
private readonly idleMs = 120;
|
||||
private pending:
|
||||
| {
|
||||
resolve: (r: TauRpcResult) => void;
|
||||
@@ -58,7 +55,12 @@ class TauRpcClient {
|
||||
const out = this.buffer.join("\n");
|
||||
clearTimeout(pending.timer);
|
||||
// Treat process exit as completion with whatever output we captured.
|
||||
pending.resolve({ stdout: out, stderr: this.stderr, code: code ?? 0, signal });
|
||||
pending.resolve({
|
||||
stdout: out,
|
||||
stderr: this.stderr,
|
||||
code: code ?? 0,
|
||||
signal,
|
||||
});
|
||||
}
|
||||
this.dispose();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user