Skip to content

Commit

Permalink
Fix showing success message if PR force-merge fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
tech4him1 committed Jan 17, 2018
1 parent 7d0efb4 commit cda55bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/github/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ export default class API {
})
.catch((error) => {
if (error instanceof APIError && error.status === 405) {
this.forceMergePR(pullrequest, objects);
return this.forceMergePR(pullrequest, objects);
} else {
throw error;
}
Expand Down

0 comments on commit cda55bc

Please sign in to comment.