Skip to content

Commit

Permalink
Merging master into branch: feat1
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny5-bot authored Dec 15, 2016
2 parents 05aeab6 + 2295bdd commit 9785010
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,7 @@ function mergeToMaster(repo, branch) {
return Promise.resolve();
})
.catch(function (err) {
if (err.message.message.indexOf("409")) {
return Promise.reject("Conflict merging " + branch + "into master");
} else {
return Promise.reject(err.message);
}
return Promise.reject(err.message);
})
}

Expand Down Expand Up @@ -143,11 +139,7 @@ function preCheck(repo, branch) {
return Promise.resolve();
})
.catch(function(err){
if (err.message.message.indexOf("409") > -1){
return Promise.reject("Conflict merging master into " + branch);
} else {
return Promise.reject(err.message);
}
return Promise.reject(err.message);
})
}

Expand Down

0 comments on commit 9785010

Please sign in to comment.