Skip to content

Commit

Permalink
Fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jlord committed Jan 30, 2017
1 parent b101d20 commit fd00f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/verify/merge_tada.js
Expand Up @@ -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()
}
})
})
Expand Down

0 comments on commit fd00f6b

Please sign in to comment.