Skip to content

Commit afa0b21

Browse files
author
Ilya Radchenko
committed
Fix logging no-branch-match when there was a match
1 parent 202a524 commit afa0b21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/webhooks.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,7 @@ function receiveWebhook(emitter, req, res) {
240240

241241
if (result && result.skipCi) {
242242
console.log('Skipping commit due to [skip ci] tag');
243-
}
244-
else {
243+
} else if (!result) {
245244
console.log('webhook received, but no branched matched or branch is not active');
246245
}
247246

0 commit comments

Comments
 (0)