mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Avoid duplicate getApiDetails in getGitHubVersion
This commit is contained in:
5
lib/entry-points.js
generated
5
lib/entry-points.js
generated
@@ -146768,9 +146768,10 @@ async function getGitHubVersionFromApi(apiClient, apiDetails) {
|
||||
}
|
||||
async function getGitHubVersion() {
|
||||
if (cachedGitHubVersion === void 0) {
|
||||
const apiDetails = getApiDetails();
|
||||
cachedGitHubVersion = await getGitHubVersionFromApi(
|
||||
getApiClient(),
|
||||
getApiDetails()
|
||||
createApiClientWithDetails(apiDetails),
|
||||
apiDetails
|
||||
);
|
||||
}
|
||||
return cachedGitHubVersion;
|
||||
|
||||
Reference in New Issue
Block a user