Skip to content

Commit 3afa754

Browse files
fix(ci): satisfy biome lint
1 parent 85355a3 commit 3afa754

5 files changed

Lines changed: 8 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,4 @@ docs/
6666

6767
# Agent worktrees / transcripts
6868
.claude/projects/
69+
.codex-temp/

apps/desktop/scripts/dev.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const env = { ...process.env };
88

99
// Some hosts, including automation agents, run Electron tooling with this set
1010
// so Electron behaves like Node. The desktop dev app must launch real Electron.
11-
delete env.ELECTRON_RUN_AS_NODE;
11+
env.ELECTRON_RUN_AS_NODE = undefined;
1212

1313
const child = spawn(process.execPath, [electronViteBin, 'dev', ...process.argv.slice(2)], {
1414
env,

apps/desktop/src/main/onboarding-ipc.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,6 @@ describe('config:v1:import-codex-config empty env handling', () => {
300300
expect(encryptSecret).not.toHaveBeenCalled();
301301
const written = vi.mocked(writeConfig).mock.calls.at(-1)?.[0];
302302
expect(written?.secrets['codex-empty-env']).toBeUndefined();
303-
delete process.env['OPEN_CODESIGN_EMPTY_ENV_FOR_TEST'];
303+
process.env['OPEN_CODESIGN_EMPTY_ENV_FOR_TEST'] = undefined;
304304
});
305305
});

apps/desktop/src/main/storage-settings.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ describe('buildAppPaths', () => {
7272

7373
expect(next).toEqual({ dataDir });
7474
await expect(readPersistedStorageLocations(root)).resolves.toEqual({ dataDir });
75-
await expect(readFile(storageSettingsPath(root), 'utf8')).resolves.toContain(
76-
'"dataDir":',
77-
);
75+
await expect(readFile(storageSettingsPath(root), 'utf8')).resolves.toContain('"dataDir":');
7876
});
7977
});

apps/desktop/src/main/storage-settings.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ function parseStorageSettingsFile(raw: string): StorageLocations {
161161
);
162162
}
163163
if (typeof parsed !== 'object' || parsed === null || Array.isArray(parsed)) {
164-
throw new CodesignError('storage-settings.json must contain an object', 'STORAGE_SETTINGS_INVALID');
164+
throw new CodesignError(
165+
'storage-settings.json must contain an object',
166+
'STORAGE_SETTINGS_INVALID',
167+
);
165168
}
166169
return sanitizeStorageLocations(parsed as Record<string, unknown>);
167170
}

0 commit comments

Comments
 (0)