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 413f138 commit 5f11b2d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/report/reporters/histogram/abscissa.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ const getLabelLine = function ({
median,
medianIndex,
}) {
const titlesSpace = ' '.repeat(titlesWidth)
const minSpace = ' '.repeat(minBlockWidth)
const leftSpace = ' '.repeat(titlesWidth + minBlockWidth)
const label = getLabel(contentWidth, median, medianIndex)
return `${titlesSpace}${minSpace}${label}\n`
return `${leftSpace}${label}\n`
}

const getLabel = function (contentWidth, median, medianIndex) {
Expand Down

0 comments on commit 5f11b2d

Please sign in to comment.