Skip to content

Commit

Permalink
Fix eslint no-shadow warning in main.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
tylermilner committed Apr 8, 2024
1 parent bb5fcfe commit 3ea9632
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ async function run() {
return
}

// eslint-disable-next-line no-shadow
const headCommits = workflowRuns.map(run => {
return run.head_commit
const headCommits = workflowRuns.map(workflowRun => {
return workflowRun.head_commit
})
if (debug) {
console.log('headCommits:', JSON.stringify(headCommits, null, 2))
Expand Down

0 comments on commit 3ea9632

Please sign in to comment.