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 bad0acf commit 1d36895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/report/reporters/boxplot/box.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ const getLeftSpace = function (min, minBlockWidth, mini) {
const getMinLine = function (min, q1) {
const leftLine = fillCharacter(LINE_CHARACTER, min, q1)
const leftLineA =
leftLine === '' ? leftLine : MIN_CHARACTER + leftLine.slice(1)
leftLine === '' ? leftLine : `${MIN_CHARACTER}${leftLine.slice(1)}`
return separatorColor(leftLineA)
}

const getMaxLine = function (q3, max) {
const rightLine = fillCharacter(LINE_CHARACTER, q3, max)
const rightLineA =
rightLine === '' ? rightLine : rightLine.slice(0, -1) + MAX_CHARACTER
rightLine === '' ? rightLine : `${rightLine.slice(0, -1)}${MAX_CHARACTER}`
return separatorColor(rightLineA)
}

Expand Down

0 comments on commit 1d36895

Please sign in to comment.