Skip to content

Commit

Permalink
Fix showing success message if PR force-merge fails. (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
tech4him1 authored and verythorough committed Jan 17, 2018
1 parent d74087e commit 6ccc253
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 6ccc253

Please sign in to comment.