Skip to content

Commit

Permalink
fix: add pr comment suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina committed May 1, 2024
1 parent 72e7e35 commit a30143f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions src/tablebuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ export function buildBenchmarkTable(benchmarks: Benchmark[]): string {
let tableString = `| Benchmark | Score | Error |`
tableString += `\n`
tableString += `| --------- | ----- | ----- |`
tableString += `\n`
benchmarks.forEach(function (benchmark) {
tableString += `| ${benchmark.benchmark} | ${formattedScoreFor(benchmark)} | ${formattedErrorFor(benchmark)} |`
tableString += `\n`
tableString += `| ${benchmark.benchmark} | ${formattedScoreFor(benchmark)} | ${formattedErrorFor(benchmark)} |`
})
return tableString.trimEnd()
return tableString
}

0 comments on commit a30143f

Please sign in to comment.