style: satisfy desktop eslint (curly braces, import order)

This commit is contained in:
Teknium
2026-08-15 04:29:17 -07:00
parent 07161e1da4
commit bda83a4737
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -55,12 +55,16 @@ export async function clearStaleGitLocks(
const gitDir = path.join(repoRoot, '.git')
const removed: string[] = []
try {
if (!fs.statSync(gitDir).isDirectory()) return removed
if (!fs.statSync(gitDir).isDirectory()) {
return removed
}
} catch {
return removed
}
if (await isGitRunning()) return removed
if (await isGitRunning()) {
return removed
}
const cutoff = Date.now() - minAgeMs
for (const name of LOCK_NAMES) {
+1 -1
View File
@@ -162,6 +162,7 @@ import {
removeWorktree,
switchBranch
} from './git-worktree-ops'
import { clearStaleGitLocks } from './gitlock'
import { readAndConsumeHandoffResult } from './handoff-result'
import {
ATTACHMENT_UPLOAD_DEFAULT_MAX_BYTES,
@@ -253,7 +254,6 @@ import {
resolveCommitLogSelection,
shouldCountCommits
} from './update-count'
import { clearStaleGitLocks } from './gitlock'
import { waitForUpdateClearance } from './update-gate'
import { readLiveUpdateMarker, updateHandoffConflict, writeUpdateMarker } from './update-marker'
import { isOfficialSshRemote, OFFICIAL_REPO_HTTPS_URL } from './update-remote'