diff --git a/src/config.ts b/src/config.ts index c92c31c..45e50ab 100644 --- a/src/config.ts +++ b/src/config.ts @@ -24,7 +24,6 @@ export function readConfigFile(filePath: string = CONFIG_FILEPATH): Configuratio try { var data = fs.readFileSync(path.resolve(filePath), "utf-8"); - } catch (error: any) { if (error.code && error.code === 'ENOENT') { return defaultOptions diff --git a/src/filter.ts b/src/filter.ts index 835d0d6..610b8dd 100644 --- a/src/filter.ts +++ b/src/filter.ts @@ -16,10 +16,9 @@ export function filterChangesBySeverity(severity: Severity, changes: Changes): C return true } }) - } // don't want to deal with changes with no vulnerabilities changes = changes.filter((change: any) => change.vulnerabilities.length > 0) return changes -} \ No newline at end of file +}