Skip to content

Commit f829c85

Browse files
committed
chore: import readFileSync only
1 parent 37ee254 commit f829c85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as uuidv4 from 'uuid/v4';
22
import { loadConfig } from 'snyk-config';
3-
import * as fs from 'fs';
3+
import { readFileSync } from 'fs';
44

55
const config: Record<string, any> = loadConfig(__dirname + '/../..', {
66
secretConfig: process.env.CONFIG_SECRET_FILE,
@@ -10,7 +10,7 @@ const namespacesFilePath = '/etc/config/excludedNamespaces';
1010

1111
function loadExcludedNamespaces(): string[] | null {
1212
try {
13-
const data = fs.readFileSync(namespacesFilePath, 'UTF-8');
13+
const data = readFileSync(namespacesFilePath, 'UTF-8');
1414
const namespaces: string[] = data.split(/\r?\n/);
1515
return namespaces;
1616
} catch (err) {

0 commit comments

Comments
 (0)