Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoni Kepinski committed Oct 31, 2020
1 parent b14f33a commit b467e4f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ bench
let difference;

bench.forEach(element => {
if (previous) {
difference = ((element.hz - previous) * 100 / previous).toFixed(2) + '% faster';
} else {
difference = 'N/A';
}
difference = previous ? (((element.hz - previous) * 100 / previous).toFixed(2) + '% faster') : 'N/A';

previous = element.hz;
tbl.push([element.name, element.stats.mean, element.hz.toLocaleString(), difference]);
Expand Down

0 comments on commit b467e4f

Please sign in to comment.