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 ef5d93e commit d810614
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions src/report/reporters/histogram/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,18 @@ export const getContent = function ({
medianIndex,
mini,
})

if (mini) {
return rows
}

const abscissa = getAbscissa({
combinationTitles,
titleBlockWidth,
minBlockWidth,
contentWidth,
median,
medianIndex,
min,
max,
})
const abscissa = mini
? ''
: getAbscissa({
combinationTitles,
titleBlockWidth,
minBlockWidth,
contentWidth,
median,
medianIndex,
min,
max,
})
return `${rows}${abscissa}`
}

Expand Down

0 comments on commit d810614

Please sign in to comment.