From 870edae9039c17de07466be5a7fa025b2cb1993f Mon Sep 17 00:00:00 2001 From: Emmanuel Date: Fri, 20 Sep 2024 20:57:45 +0100 Subject: [PATCH] fix: solve sonar issues --- audit/apps/audit/src/checkers/sync/file-system-checker.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/audit/apps/audit/src/checkers/sync/file-system-checker.ts b/audit/apps/audit/src/checkers/sync/file-system-checker.ts index 2970b35..2a09755 100644 --- a/audit/apps/audit/src/checkers/sync/file-system-checker.ts +++ b/audit/apps/audit/src/checkers/sync/file-system-checker.ts @@ -10,7 +10,7 @@ const checkIfDevOrProdDependenciesPresent = ( devDependencies = false ) => { const result = {}; - path.map((path) => { + path.forEach((path) => { const r = JSON.parse(readFileSync(path).toString()); if ( Object.keys( @@ -87,7 +87,6 @@ const npmAudit = (parsers: { name: string; result: any }[]) => { return { name: 'npm_outdated', result: JSON.parse(e.stdout.toString()) }; } } - return; }; export class FileSystemChecker {