Fix new linter errors

This commit is contained in:
Henry Mercer 2024-08-05 19:22:26 +01:00
parent acb243eabd
commit ecb9ccfcb1
33 changed files with 41 additions and 33 deletions

2
lib/analyze.js generated
View file

@ -108,7 +108,7 @@ function dbIsFinalized(config, language, logger) {
const dbInfo = yaml.load(fs.readFileSync(path.resolve(dbPath, "codeql-database.yml"), "utf8"));
return !("inProgress" in dbInfo);
}
catch (e) {
catch {
logger.warning(`Could not check whether database for ${language} was finalized. Assuming it is not.`);
return false;
}