@@ -4,19 +4,19 @@ import { extractRangeInfo } from './extractRangeInfo';
44
55export function normalizeBenchmarkResult (
66 prevBenchResult : BenchmarkResult | undefined | null ,
7- currenBenchResult : BenchmarkResult ,
7+ currentBenchResult : BenchmarkResult ,
88) : BenchmarkResult {
99 if ( ! prevBenchResult ) {
10- return currenBenchResult ;
10+ return currentBenchResult ;
1111 }
1212
1313 const prevUnit = prevBenchResult . unit ;
14- const currentUnit = currenBenchResult . unit ;
15- const currentRange = currenBenchResult . range ;
14+ const currentUnit = currentBenchResult . unit ;
15+ const currentRange = currentBenchResult . range ;
1616 const currentRangeInfo = extractRangeInfo ( currentRange ) ;
1717
18- const normalizedValue = normalizeValueByUnit ( prevUnit , currentUnit , currenBenchResult . value ) ;
19- const normalizedUnit = currenBenchResult . value !== normalizedValue ? prevUnit : currentUnit ;
18+ const normalizedValue = normalizeValueByUnit ( prevUnit , currentUnit , currentBenchResult . value ) ;
19+ const normalizedUnit = currentBenchResult . value !== normalizedValue ? prevUnit : currentUnit ;
2020 const normalizedRangeInfo = currentRangeInfo
2121 ? {
2222 prefix : currentRangeInfo . prefix ,
@@ -25,7 +25,7 @@ export function normalizeBenchmarkResult(
2525 : undefined ;
2626
2727 return {
28- ...currenBenchResult ,
28+ ...currentBenchResult ,
2929 value : normalizedValue ,
3030 unit : normalizedUnit ,
3131 range : normalizedRangeInfo ? `${ normalizedRangeInfo . prefix } ${ normalizedRangeInfo . value } ` : currentRange ,
0 commit comments