diff --git a/lib/commons/color/get-background-color.js b/lib/commons/color/get-background-color.js index 6eda49a2d2..a4a9593712 100644 --- a/lib/commons/color/get-background-color.js +++ b/lib/commons/color/get-background-color.js @@ -250,8 +250,7 @@ color.filteredRectStack = function(elm) { if (rectStack && rectStack.length === 1) { // default case, elm.getBoundingClientRect() return rectStack[0]; - } - else if (rectStack && rectStack.length > 1) { + } else if (rectStack && rectStack.length > 1) { let boundingStack = rectStack.shift(); let isSame; // iterating over arrays of DOMRects