E585 Drive-by: fix linting errors · github/codeql-action@a6427b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit a6427b3

Browse files
committed
Drive-by: fix linting errors
1 parent 7a76543 commit a6427b3

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

lib/analyze-action.js

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.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.

src/analyze-action.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import { getTotalCacheSize, uploadTrapCaches } from "./trap-caching";
3636
import * as uploadLib from "./upload-lib";
3737
import { UploadResult } from "./upload-lib";
3838
import * as util from "./util";
39-
import { checkForTimeout, wrapError } from "./util";
4039

4140
interface AnalysisStatusReport
4241
extends uploadLib.UploadStatusReport,
@@ -355,7 +354,7 @@ async function run() {
355354
}
356355
core.exportVariable(EnvVar.ANALYZE_DID_COMPLETE_SUCCESSFULLY, "true");
357356
} catch (unwrappedError) {
358-
const error = wrapError(unwrappedError);
357+
const error = util.wrapError(unwrappedError);
359358
if (
360359
actionsUtil.getOptionalInput("expect-error") !== "true" ||
361360
hasBadExpectErrorInput()
@@ -436,9 +435,9 @@ async function runWrapper() {
436435
try {
437436
await runPromise;
438437
} catch (error) {
439-
core.setFailed(`analyze action failed: ${wrapError(error).message}`);
438+
core.setFailed(`analyze action failed: ${util.wrapError(error).message}`);
440439
}
441-
await checkForTimeout();
440+
await util.checkForTimeout();
442441
}
443442

444443
void runWrapper();

0 commit comments

Comments
 (0)
0