Skip to content

Commit 8e2ce2f

Browse files
committed
style: lint
1 parent 86a2a39 commit 8e2ce2f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/commands/add.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ function createHookFile(file: string, cmd: string) {
1515
throw new Error(`${file} already exists`)
1616
}
1717

18-
const data = ['#!/bin/sh', '. "$(dirname "$0")/_/husky.sh"', '', cmd, ''].join(
19-
'\n'
20-
)
18+
const data = [
19+
'#!/bin/sh',
20+
'. "$(dirname "$0")/_/husky.sh"',
21+
'',
22+
cmd,
23+
'',
24+
].join('\n')
2125

2226
fs.writeFileSync(file, data, 'utf-8')
2327
// Show "./file" instead of just "file"

0 commit comments

Comments
 (0)