Skip to content

Commit 91efae9

Browse files
chore: fix lint warnings
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4f9c43d commit 91efae9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/git-hooks.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ async function getStagedFiles(projectRoot: string = process.cwd()): Promise<stri
286286
}
287287

288288
return files
289-
} catch (error) {
289+
}
290+
catch (error) {
290291
console.error('[ERROR] Failed to get staged files:', error)
291292
return []
292293
}
@@ -307,10 +308,12 @@ function _setHook(hook: string, commandOrConfig: string | { stagedLint?: StagedL
307308

308309
if (typeof commandOrConfig === 'string') {
309310
hookCommand = PREPEND_SCRIPT + commandOrConfig
310-
} else if (commandOrConfig.stagedLint || commandOrConfig['staged-lint']) {
311+
}
312+
else if (commandOrConfig.stagedLint || commandOrConfig['staged-lint']) {
311313
// Keep original command for compatibility with existing tests and setups
312314
hookCommand = PREPEND_SCRIPT + `bun git-hooks run-staged-lint ${hook}`
313-
} else {
315+
}
316+
else {
314317
console.error(`[ERROR] Invalid command or config for hook ${hook}`)
315318
return
316319
}

0 commit comments

Comments
 (0)