Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#84193)

hermes-seaeye[bot]9da6d455c9e1
diff --git a/apps/desktop/electron/handoff-result.test.ts b/apps/desktop/electron/handoff-result.test.ts
index 6d74f7f6496..d71a6e9ef16 100644
--- a/apps/desktop/electron/handoff-result.test.ts
+++ b/apps/desktop/electron/handoff-result.test.ts
@@ -86,7 +86,11 @@ test('manual flag survives the round trip and defaults false', () => {
assert.equal(result.manual, true)
write(home, { ok: true, exit_code: 0, message: 'done', branch: 'main', finished_at: Math.floor(Date.now() / 1000) })
- assert.equal(readAndConsumeHandoffResult(home)?.manual, false, 'older writers without the field parse as manual:false')
+ assert.equal(
+ readAndConsumeHandoffResult(home)?.manual,
+ false,
+ 'older writers without the field parse as manual:false'
+ )
})
test('an old manual result survives the freshness window but an old ordinary one does not', () => {
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index e0a5cc25e3f..09a59287c09 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -3373,15 +3373,7 @@ async function applyUpdatesPosixHandoff(opts: any) {
// best effort
}
- const args = [
- ...handoff.args,
- '--install-root',
- updateRoot,
- '--branch',
- branch,
- '--desktop-pid',
- String(process.pid)
- ]
+ const args = [...handoff.args, '--install-root', updateRoot, '--branch', branch, '--desktop-pid', String(process.pid)]
// Relaunch target: the running .app bundle on mac (script swaps the
// rebuilt bundle over it), the running binary elsewhere. The script's gate
@@ -3427,9 +3419,7 @@ async function applyUpdatesPosixHandoff(opts: any) {
writeUpdateMarker(HERMES_HOME, child.pid)
}
- rememberLog(
- `[updates] launched posix hand-off: ${handoff.scriptPath} (branch ${branch}); quitting to hand off`
- )
+ rememberLog(`[updates] launched posix hand-off: ${handoff.scriptPath} (branch ${branch}); quitting to hand off`)
emitUpdateProgress({
stage: 'restart',
message:
@@ -3445,7 +3435,6 @@ async function applyUpdatesPosixHandoff(opts: any) {
return { ok: true, handedOff: true, updater: handoff.scriptPath }
}
-
function readJson(filePath) {
try {
return JSON.parse(fs.readFileSync(filePath, 'utf8'))