From b844f4ce7ef17fe6bc0586b6494477f25b4bd1bd Mon Sep 17 00:00:00 2001 From: Brandon Rajkowski Date: Wed, 20 Jul 2022 22:57:57 -0600 Subject: [PATCH] fix: explicitly using exit code 0 for successful hook exits --- src/commit-msg-hook.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commit-msg-hook.ts b/src/commit-msg-hook.ts index 4b121a5a..667f7144 100644 --- a/src/commit-msg-hook.ts +++ b/src/commit-msg-hook.ts @@ -10,7 +10,7 @@ const currentCommitMsg = readFileSync(commitMsgFilePath).toString().trimEnd(); const hookConfig = getConfig(); if (hookConfig === undefined) { - exit(); + exit(0); } try { @@ -30,7 +30,7 @@ const branchMatches = branchName.match( ); if (!branchMatches) { - exit(); + exit(0); } let newCommitMsg = hookConfig.commitMsgFormat;