Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tugdual Grall committed Mar 18, 2023
1 parent 94786b3 commit 2f14134
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/config-utils.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/config-utils.test.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/config-utils.test.js.map

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions src/config-utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -936,9 +936,7 @@ test("Queries can be specified in configuration, same as file", async (t) => {
- a/b@1.2.3
python:
- c/d@1.2.3
`;


`;

fs.mkdirSync(path.join(tmpDir, "foo"));

Expand Down Expand Up @@ -2757,5 +2755,3 @@ const mockRepositoryNwo = parseRepositoryNwo("owner/repo");
t.deepEqual(mockRequest.called, args.expectedApiCall);
});
});


7 changes: 4 additions & 3 deletions src/config-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1708,12 +1708,14 @@ export async function initConfig(

// if configuration is set, it takes precedence over configFile
if (configuration) {
const configFileToCreate = path.resolve(workspacePath, "user-config-from-action.yml");
const configFileToCreate = path.resolve(
workspacePath,
"user-config-from-action.yml"
);
fs.writeFileSync(configFileToCreate, configuration);
configFile = configFileToCreate;
logger.debug(`Using configuration from action input: ${configFile}`);
}


// If no config file was provided create an empty one
if (!configFile) {
Expand Down Expand Up @@ -1758,7 +1760,6 @@ export async function initConfig(
);
}


// When using the codescanning config in the CLI, pack downloads
// happen in the CLI during the `database init` command, so no need
// to download them here.
Expand Down

0 comments on commit 2f14134

Please sign in to comment.