Whitespace and newlines.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user