Skip to content

Commit 3b5002c

Browse files
committed
fix: resolve Biome lint errors in hooks.ts
- Wrap const declarations in switch cases with curly braces - Fixes Biome lint error about lexical declarations in case clauses
1 parent fe4af01 commit 3b5002c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/commands/definitions/hooks.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,11 @@ export const hooksCommand: CommandDefinition = {
237237
let responseMessage = '';
238238

239239
switch (subcommand) {
240-
case 'list':
240+
case 'list': {
241241
const showMergedOnly = flags.includes('--merged');
242242
responseMessage = listHooks(!showMergedOnly);
243243
break;
244+
}
244245

245246
case 'enable':
246247
hooksManager.setEnabled(true);
@@ -261,10 +262,11 @@ export const hooksCommand: CommandDefinition = {
261262
responseMessage = showExampleConfig();
262263
break;
263264

264-
case 'init':
265+
case 'init': {
265266
const isLocal = flags.includes('--local');
266267
responseMessage = initializeHooks(isLocal);
267268
break;
269+
}
268270

269271
default:
270272
responseMessage = showHelp();

0 commit comments

Comments
 (0)