mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 09:40:17 +08:00
Remove an unneeded if.
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
This commit is contained in:
@@ -38,10 +38,7 @@ export const getApiClient = function (
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user