Skip to content

Commit ac5f407

Browse files
committed
fix: pass default object if there is no json
1 parent 41b720a commit ac5f407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/commit-message-run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if (args.file) {
3535
}
3636
start.then(getJsonBlock).then(json => {
3737
if (!json) {
38-
return runIf(actualCommand)
38+
return runIf(actualCommand, {})
3939
}
4040
console.log('got json block from the git commit message')
4141
console.log(JSON.stringify(json, null, 2))

0 commit comments

Comments
 (0)