From 483c94b974034400277379b57e7451990911eeb3 Mon Sep 17 00:00:00 2001 From: Eric Cornelissen <ericornelissen@gmail.com> Date: Thu, 19 Nov 2020 22:54:48 +0100 Subject: [PATCH] Fix no shadow issues in upload-lib.ts Rename one instance of "path" to avoid shadowing. --- src/upload-lib.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/upload-lib.ts b/src/upload-lib.ts index 648a988d9..8f8e369d3 100644 --- a/src/upload-lib.ts +++ b/src/upload-lib.ts @@ -108,8 +108,8 @@ export async function upload( .readdirSync(sarifPath) .filter((f) => f.endsWith(".sarif")) .map((f) => path.resolve(sarifPath, f)); - for (const path of paths) { - sarifFiles.push(path); + for (const filepath of paths) { + sarifFiles.push(filepath); } if (sarifFiles.length === 0) { throw new Error(`No SARIF files found to upload in "${sarifPath}".`);