Skip to content

Commit 5045173

Browse files
committed
let github throw errors instead
1 parent 75c8f6c commit 5045173

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/Github/Api/PullRequest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,6 @@ public function merge($username, $repository, $id, $message, $sha, $mergeMethod
158158
$mergeMethod = $mergeMethod ? 'squash' : 'merge';
159159
}
160160

161-
if (!in_array($mergeMethod, array('squash', 'rebase'))) {
162-
$mergeMethod = 'merge';
163-
}
164-
165161
$params = array(
166162
'commit_message' => $message,
167163
'sha' => $sha,

0 commit comments

Comments
 (0)