Skip to content

Commit ae44438

Browse files
committed
Fix merge
1 parent 2d28c89 commit ae44438

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/GithubApi.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,7 @@ public function getPullRequestForCommit(string $commit, string $repo): ?array
173173

174174
private function requestGitHubApi(string $path)
175175
{
176-
if ($this->downloader instanceof HttpDownloader) {
177-
$contents = $this->downloader->get($path)->getBody();
178-
} else {
179-
$contents = $this->downloader->getContents('api.github.com', $path, false);
180-
}
176+
$contents = $this->downloader->get($path)->getBody();
181177

182178
return json_decode($contents, true);
183179
}

0 commit comments

Comments
 (0)