Skip to content

Commit df1ca89

Browse files
committed
appease linter
1 parent 97c6dd5 commit df1ca89

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: src/comment-pr.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export async function commentPr(
3636
return
3737
}
3838

39-
let commentBody = `${commentContent}\n\n${COMMENT_MARKER}`
39+
const commentBody = `${commentContent}\n\n${COMMENT_MARKER}`
4040

4141
try {
4242
const existingCommentId = await findCommentByMarker(COMMENT_MARKER)

Diff for: src/summary.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function addSummaryToSummary(
2020
scorecard: Scorecard,
2121
config: ConfigurationOptions
2222
): string {
23-
let out: string[] = []
23+
const out: string[] = []
2424

2525
const scorecardWarnings = countScorecardWarnings(scorecard, config)
2626
const licenseIssues = countLicenseIssues(invalidLicenseChanges)
@@ -92,9 +92,9 @@ export function addSummaryToSummary(
9292
]
9393

9494
core.summary.addList(summaryList)
95-
summaryList.forEach(line => {
96-
out.push('* ' + line)
97-
})
95+
for (const line of summaryList) {
96+
out.push(`* ${line}`)
97+
}
9898

9999
core.summary.addRaw('See the Details below.')
100100
out.push(

0 commit comments

Comments
 (0)