From 4d861dba89e39776c7b6076ad4586bf1056c970a Mon Sep 17 00:00:00 2001 From: Alex Jurkiewicz Date: Fri, 17 Sep 2021 09:06:27 +1000 Subject: [PATCH] Use arrow function syntax for anonymous functions --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 966c14b..b16f455 100644 --- a/index.js +++ b/index.js @@ -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(" ")}`)