We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37ee254 commit f829c85Copy full SHA for f829c85
src/common/config.ts
@@ -1,6 +1,6 @@
1
import * as uuidv4 from 'uuid/v4';
2
import { loadConfig } from 'snyk-config';
3
-import * as fs from 'fs';
+import { readFileSync } from 'fs';
4
5
const config: Record<string, any> = loadConfig(__dirname + '/../..', {
6
secretConfig: process.env.CONFIG_SECRET_FILE,
@@ -10,7 +10,7 @@ const namespacesFilePath = '/etc/config/excludedNamespaces';
10
11
function loadExcludedNamespaces(): string[] | null {
12
try {
13
- const data = fs.readFileSync(namespacesFilePath, 'UTF-8');
+ const data = readFileSync(namespacesFilePath, 'UTF-8');
14
const namespaces: string[] = data.split(/\r?\n/);
15
return namespaces;
16
} catch (err) {
0 commit comments