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 97a0840 commit d2b15a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/report/reporters/histogram/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const reportTerminal = function (
{ combinations, screenWidth },
{ mini = false },
) {
const height = DEFAULT_HEIGHT
const height = 2 * EXTRA_HEIGHT
const width = getContentWidth(combinations, mini, screenWidth)
return combinations
.map((combination) =>
Expand All @@ -26,8 +26,6 @@ const reportTerminal = function (
.join('\n')
}

const DEFAULT_HEIGHT = 2 * EXTRA_HEIGHT

const getContentWidth = function (combinations, mini, screenWidth) {
return Math.max(
screenWidth -
Expand Down

0 comments on commit d2b15a3

Please sign in to comment.