Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Sep 5, 2021
1 parent 9d04302 commit bad0acf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/report/reporters/boxplot/box.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ export const getBox = function ({
}

const getLeftSpace = function (min, minBlockWidth, mini) {
const minPaddedLength = getPaddedStat(min.pretty, mini).length
const leftSpaceWidth = Math.max(
minBlockWidth + min.index - minPaddedLength,
0,
)
const minWidth = getPaddedStat(min.pretty, mini).length
const leftSpaceWidth = Math.max(minBlockWidth + min.index - minWidth, 0)
return ' '.repeat(leftSpaceWidth)
}

Expand Down

0 comments on commit bad0acf

Please sign in to comment.