Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 7e0916e

Browse files
committed
snapshotPath -> databasePath
1 parent 1a77cde commit 7e0916e

File tree

1 file changed

+3
-3
lines changed
  • codeql-learninglab-check/package/src

1 file changed

+3
-3
lines changed

codeql-learninglab-check/package/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const CONFIG_JSON = path.join(CONFIG_PATH, 'config.json');
4545
const OUTPUT_PATH = path.join(CODEQL_HOME, 'output');
4646

4747
type Config = {
48-
snapshotPath: string;
48+
databasePath: string;
4949
/**
5050
* If set, the locations of extra or missing results can be linked to from
5151
* comments. {path} and {line-start} placeholders need to be present
@@ -61,7 +61,7 @@ type Config = {
6161
function isConfig(config: any): config is Config {
6262
if (!config)
6363
throw new Error('Configuration not specified');
64-
if (typeof config.snapshotPath !== 'string')
64+
if (typeof config.databasePath !== 'string')
6565
throw new Error('Configuration must specify a valid snapshotPath');
6666
if (typeof config.expectedResults !== 'object')
6767
throw new Error('Configuration property expectedResults invalid');
@@ -299,7 +299,7 @@ function isConfig(config: any): config is Config {
299299
console.log(`- ${query}`);
300300

301301
// Upgrade the database if neccesary
302-
const databasePath = path.join(CONFIG_PATH, config.snapshotPath);
302+
const databasePath = path.join(CONFIG_PATH, config.databasePath);
303303
console.log('Upgrading CodeQL Database');
304304
await execFile('codeql', ['database', 'upgrade', databasePath]);
305305

0 commit comments

Comments
 (0)