Skip to content

Commit

Permalink
Clean up syntax per PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
Angela P Wen committed Aug 2, 2022
1 parent daaac43 commit a557279
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lib/analyze-action-cleanup.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/analyze-action-cleanup.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions src/analyze-action-cleanup.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import * as core from "@actions/core";

import * as actionsUtil from "./actions-util";
import { Config, getConfig } from "./config-utils";
import { getConfig } from "./config-utils";
import { getActionsLogger } from "./logging";

async function run(uploadSarifDebugArtifact: Function) {
const logger = getActionsLogger();

let config: Config | undefined = undefined;
config = await getConfig(actionsUtil.getTemporaryDirectory(), logger);
const config = await getConfig(actionsUtil.getTemporaryDirectory(), logger);
if (config === undefined) {
throw new Error(
"Config file could not be found at expected location. Has the 'init' action been called?"
Expand Down

0 comments on commit a557279

Please sign in to comment.