Skip to content

Commit 7c6fa5c

Browse files
Remove an unneeded if.
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
1 parent bbdc9ef commit 7c6fa5c

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

lib/api-client.js

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/api-client.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api-client.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ export const getApiClient = function (
3838
const auth =
3939
(allowExternal && apiDetails.externalRepoAuth) || apiDetails.auth;
4040
const retryingOctokit = githubUtils.GitHub.plugin(retry.retry);
41-
let apiURL = apiDetails.apiURL;
42-
if (!apiURL) {
43-
apiURL = deriveApiUrl(apiDetails.url);
44-
}
41+
const apiURL = apiDetails.apiURL || deriveApiUrl(apiDetails.url);
4542
return new retryingOctokit(
4643
githubUtils.getOctokitOptions(auth, {
4744
baseUrl: apiURL,

0 commit comments

Comments
 (0)