Skip to content

Commit 4d9c8c2

Browse files
committed
feat: remove extra space from commit command
1 parent ad190ee commit 4d9c8c2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/helpers/git.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ module.exports = new (class Git {
100100
*/
101101
commit = (message, options = {}) => {
102102
const {noVerify} = options
103-
return this.exec(`commit -m "${message}" ${noVerify ? "--no-verify" : ""}`)
103+
const args = [`commit -m "${message}"`]
104+
if (noVerify) {
105+
args.push("--no-verify")
106+
}
107+
return this.exec(args.join(" "))
104108
}
105109

106110
/**

0 commit comments

Comments
 (0)