Fix showing success message if PR force-merge fails. (#1016)

This commit is contained in:
Caleb 2018-01-16 19:41:18 -07:00 committed by Jessica Parsons
parent d74087e14c
commit 6ccc253599

View File

@ -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;
}