Remove an unneeded if.
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
This commit is contained in:
parent
bbdc9efa94
commit
7c6fa5ce8a
3 changed files with 3 additions and 9 deletions
5
lib/api-client.js
generated
5
lib/api-client.js
generated
|
|
@ -40,10 +40,7 @@ var DisallowedAPIVersionReason;
|
|||
const getApiClient = function (apiDetails, { allowExternal = false } = {}) {
|
||||
const auth = (allowExternal && apiDetails.externalRepoAuth) || apiDetails.auth;
|
||||
const retryingOctokit = githubUtils.GitHub.plugin(retry.retry);
|
||||
let apiURL = apiDetails.apiURL;
|
||||
if (!apiURL) {
|
||||
apiURL = deriveApiUrl(apiDetails.url);
|
||||
}
|
||||
const apiURL = apiDetails.apiURL || deriveApiUrl(apiDetails.url);
|
||||
return new retryingOctokit(githubUtils.getOctokitOptions(auth, {
|
||||
baseUrl: apiURL,
|
||||
userAgent: `CodeQL-${(0, util_1.getMode)()}/${pkg.version}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue