Skip to content

Commit 50fa3e3

Browse files
committed
style: apply oxfmt to changed files
1 parent 1e34983 commit 50fa3e3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/proof/secrets-resolve-stream-errors.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
// resolves; without the stream error listeners the unhandled errors would
99
// terminate the process.
1010

11-
import { createRequire } from "node:module";
1211
import fs from "node:fs/promises";
12+
import { createRequire } from "node:module";
1313
import os from "node:os";
1414
import path from "node:path";
1515
import { fileURLToPath } from "node:url";
1616

1717
const repoRoot = path.dirname(path.dirname(path.dirname(fileURLToPath(import.meta.url))));
1818

1919
const require = createRequire(import.meta.url);
20-
const childProcess = require("node:child_process");
20+
const childProcess = require("node:child_process") as typeof import("node:child_process");
2121
const originalSpawn = childProcess.spawn;
2222

2323
const tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-proof-secrets-"));
@@ -37,7 +37,7 @@ await fs.chmod(fakeSecret, 0o755);
3737
// emit error events after runExecResolver attaches listeners.
3838
childProcess.spawn = (...args: Parameters<typeof originalSpawn>) => {
3939
const child = originalSpawn.apply(childProcess, args);
40-
const cmd = String(args[0] ?? "");
40+
const cmd = args[0] ?? "";
4141
if (cmd === fakeSecret) {
4242
setTimeout(() => {
4343
child.stdout?.emit("error", new Error("stdout read failed"));

0 commit comments

Comments
 (0)