Fix no shadow issues in upload-lib.ts
Rename one instance of "path" to avoid shadowing.
This commit is contained in:
parent
74559947b1
commit
483c94b974
1 changed files with 2 additions and 2 deletions
|
|
@ -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}".`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue