From df1ca890c5abee86bfafafdb2404292bdb60b66d Mon Sep 17 00:00:00 2001 From: Eli Reisman Date: Tue, 4 Jun 2024 11:41:21 -0700 Subject: [PATCH] appease linter --- src/comment-pr.ts | 2 +- src/summary.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/comment-pr.ts b/src/comment-pr.ts index 1c5ed0941..06f3e050e 100644 --- a/src/comment-pr.ts +++ b/src/comment-pr.ts @@ -36,7 +36,7 @@ export async function commentPr( return } - let commentBody = `${commentContent}\n\n${COMMENT_MARKER}` + const commentBody = `${commentContent}\n\n${COMMENT_MARKER}` try { const existingCommentId = await findCommentByMarker(COMMENT_MARKER) diff --git a/src/summary.ts b/src/summary.ts index dd57c3d36..9a7535747 100644 --- a/src/summary.ts +++ b/src/summary.ts @@ -20,7 +20,7 @@ export function addSummaryToSummary( scorecard: Scorecard, config: ConfigurationOptions ): string { - let out: string[] = [] + const out: string[] = [] const scorecardWarnings = countScorecardWarnings(scorecard, config) const licenseIssues = countLicenseIssues(invalidLicenseChanges) @@ -92,9 +92,9 @@ export function addSummaryToSummary( ] core.summary.addList(summaryList) - summaryList.forEach(line => { - out.push('* ' + line) - }) + for (const line of summaryList) { + out.push(`* ${line}`) + } core.summary.addRaw('See the Details below.') out.push(