Skip to content

Commit f49f135

Browse files
committed
style: apply oxfmt to changed files
1 parent a7fd8f7 commit f49f135

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/proof/gmail-watcher-stream-errors.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
// listeners are attached. With the fix the watcher still starts; without the
88
// stream error listeners the unhandled errors would terminate the process.
99

10-
import { createRequire } from "node:module";
1110
import fs from "node:fs/promises";
11+
import { createRequire } from "node:module";
1212
import os from "node:os";
1313
import path from "node:path";
1414
import { fileURLToPath } from "node:url";
1515

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

1818
const require = createRequire(import.meta.url);
19-
const childProcess = require("node:child_process");
19+
const childProcess = require("node:child_process") as typeof import("node:child_process");
2020
const originalSpawn = childProcess.spawn;
2121

2222
const tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-proof-gog-"));
@@ -48,7 +48,7 @@ process.env.PATH = `${tmpDir}${path.delimiter}${process.env.PATH ?? ""}`;
4848
// emit error events after startGmailWatcher attaches listeners.
4949
childProcess.spawn = (...args: Parameters<typeof originalSpawn>) => {
5050
const child = originalSpawn.apply(childProcess, args);
51-
const cmd = String(args[0] ?? "");
51+
const cmd = args[0] ?? "";
5252
const argv = args[1] as string[] | undefined;
5353
if (cmd === "gog" || argv?.[0] === "gmail") {
5454
setTimeout(() => {

0 commit comments

Comments
 (0)