Skip to content

Commit

Permalink
Use arrow function syntax for anonymous functions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjurkiewicz committed Sep 24, 2021
1 parent 9b0eed0 commit 4d861db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ const main = async () => {
core.setOutput('ignored', ignored.toString())
core.setOutput('total', total.toString())
core.startGroup('Findings')
findings_details.forEach(function(finding_detail,index) {
findings_details.forEach((finding_detail,index) => {
let finding_attributes = []
finding_detail.attributes.forEach(function(attribute) {
finding_detail.attributes.forEach((attribute) => {
finding_attributes.push(`${attribute.key}=${attribute.value}`)
})
console.log(`${index + 1}. ${finding_detail.name} (${finding_detail.severity}) ${finding_attributes.join(" ")}`)
Expand Down

0 comments on commit 4d861db

Please sign in to comment.