Skip to content

Commit e0e1549

Browse files
committed
refactor: clean up whitespace and comments in metrics processing function
1 parent 66ef50a commit e0e1549

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/ctrf/metrics.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ export async function processPreviousResultsAndMetrics(
238238
)
239239
core.debug(`Artifact name to process: ${inputs.artifactName}`)
240240
core.info(`Starting workflow runs processing...`)
241-
242241
try {
243242
const currentWorkflowRun = await fetchWorkflowRun(
244243
context.repo.owner,
@@ -361,6 +360,7 @@ export async function processPreviousResultsAndMetrics(
361360
core.info(
362361
`Successfully processed ${reports.length + 1} reports from ${totalRunsChecked} workflow runs`
363362
)
363+
364364
core.endGroup()
365365
return updatedReport
366366
} catch (error) {
@@ -388,11 +388,8 @@ export async function processPreviousResultsAndMetrics(
388388
'Without it, the action will skip previous results processing and only generate reports from the current run.'
389389
)
390390

391-
// Return the current report without previous results processing
392391
return report
393392
}
394-
395-
// Re-throw other errors as-is
396393
throw error
397394
}
398395
}

0 commit comments

Comments
 (0)