Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
elireisman committed Jun 4, 2024
1 parent 97c6dd5 commit df1ca89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/comment-pr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions src/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit df1ca89

Please sign in to comment.