mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 02:01:27 +00:00
Remove an unneeded check.
This commit is contained in:
4
lib/codeql.js
generated
4
lib/codeql.js
generated
@@ -15,7 +15,6 @@ const exec = __importStar(require("@actions/exec"));
|
||||
const http = __importStar(require("@actions/http-client"));
|
||||
const io = __importStar(require("@actions/io"));
|
||||
const toolcache = __importStar(require("@actions/tool-cache"));
|
||||
const rest_1 = require("@octokit/rest");
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const semver = __importStar(require("semver"));
|
||||
@@ -72,9 +71,8 @@ async function getCodeQLBundleDownloadURL() {
|
||||
return `https://github.com/${CODEQL_DEFAULT_ACTION_REPOSITORY}/releases/download/${CODEQL_DEFAULT_BUNDLE_VERSION}/${CODEQL_DEFAULT_BUNDLE_NAME}`;
|
||||
}
|
||||
let [repositoryOwner, repositoryName] = repository.split("/");
|
||||
let client = apiURL === INSTANCE_API_URL ? api.getApiClient() : new rest_1.Octokit();
|
||||
try {
|
||||
const release = await client.repos.getReleaseByTag({
|
||||
const release = await api.getApiClient().repos.getReleaseByTag({
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
tag: CODEQL_DEFAULT_BUNDLE_VERSION
|
||||
|
||||
Reference in New Issue
Block a user