From 9b0eed03a6710ed33840fc3de3d61fcd31cd1191 Mon Sep 17 00:00:00 2001 From: Alex Jurkiewicz Date: Fri, 17 Sep 2021 09:05:06 +1000 Subject: [PATCH] Remove unnecessary semicolons --- index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index e01d985..966c14b 100644 --- a/index.js +++ b/index.js @@ -228,15 +228,15 @@ const main = async () => { core.setOutput('undefined', indeterminate.toString()) core.setOutput('ignored', ignored.toString()) core.setOutput('total', total.toString()) - core.startGroup('Findings'); + core.startGroup('Findings') findings_details.forEach(function(finding_detail,index) { - let finding_attributes = []; + let finding_attributes = [] finding_detail.attributes.forEach(function(attribute) { - finding_attributes.push(`${attribute.key}=${attribute.value}`); - }); - console.log(`${index + 1}. ${finding_detail.name} (${finding_detail.severity}) ${finding_attributes.join(" ")}`); - }); - core.endGroup(); + finding_attributes.push(`${attribute.key}=${attribute.value}`) + }) + console.log(`${index + 1}. ${finding_detail.name} (${finding_detail.severity}) ${finding_attributes.join(" ")}`) + }) + core.endGroup() console.log('Vulnerabilities found:') console.log(`${critical.toString().padStart(3, ' ')} Critical ${getCount('critical', ignoredCounts)}`) console.log(`${high.toString().padStart(3, ' ')} High ${getCount('high', ignoredCounts)}`)