Fix no shadow issues in upload-lib.ts

Rename one instance of "path"  to avoid shadowing.
This commit is contained in:
Eric Cornelissen 2020-11-19 22:54:48 +01:00
parent 74559947b1
commit 483c94b974

View file

@ -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}".`);