diff --git a/lib/verify/merge_tada.js b/lib/verify/merge_tada.js index 9a5755ee2e..23d0634d01 100644 --- a/lib/verify/merge_tada.js +++ b/lib/verify/merge_tada.js @@ -47,19 +47,19 @@ module.exports = function verifyMergeTadaChallenge (path) { addToList('Error: ' + err.message, false) return helper.challengeIncomplete() } + var branches = stdout.trim() var branchName = 'add-' + user if (branches.match(branchName)) { addToList('Uh oh, branch is still there.', false) - helper.challengeIncomplete() } else { counter++ addToList('Branch deleted!', true) if (counter === total) { markChallengeCompleted(currentChallenge) userData.updateData(currentChallenge) - } + } else helper.challengeIncomplete() } }) })