Skip to content

Commit 8ad6ba7

Browse files
authored
Clean up code
1 parent 6b81b8e commit 8ad6ba7

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

componentDetection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,18 @@ export default class ComponentDetection {
143143
private static async getLatestReleaseURL(): Promise<string> {
144144
var githubToken = core.getInput('token') || process.env.GITHUB_TOKEN || "";
145145

146-
// If the releaseServerUrl is set to a different value than the default, then use an empty string as the token
146+
// If the releaseServerUrl is set, then use an empty string as the token
147147
if (core.getInput('releaseServerUrl') != null) {
148148
githubToken = "";
149149
}
150150
const serverUrl = core.getInput('releaseServerUrl') || github.context.apiUrl;
151-
//const octokit = github.getOctokit(githubToken, { baseUrl: serverUrl });
152151
const octokit = new Octokit({ auth: githubToken, baseUrl: serverUrl, request: { fetch: fetch}, log: {
153152
debug: core.debug,
154153
info: core.info,
155154
warn: core.warning,
156155
error: core.error
157156
}, });
157+
158158
const owner = "microsoft";
159159
const repo = "component-detection";
160160
core.debug("Attempting to download latest release from " + serverUrl);

dist/index.js

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

dist/index.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.

0 commit comments

Comments
 (0)