Skip to content

Commit

Permalink
Fix no shadow issues in upload-lib.ts
Browse files Browse the repository at this point in the history
Rename one instance of "path"  to avoid shadowing.
  • Loading branch information
Eric Cornelissen committed Nov 19, 2020
1 parent 7455994 commit 483c94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/upload-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}".`);
Expand Down

0 comments on commit 483c94b

Please sign in to comment.