File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments