Skip to content

Commit 15c4fa0

Browse files
committed
remove unused condition check
1 parent 89666f8 commit 15c4fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/axes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2882,7 +2882,7 @@ axes.drawLabels = function(gd, ax, opts) {
28822882
} else {
28832883
var mjWidth = Drawing.bBox(mathjaxGroup.node()).width;
28842884
var mjShift = mjWidth * {end: -0.5, start: 0.5}[anchor];
2885-
mathjaxGroup.attr('transform', transform + (mjShift ? strTranslate(mjShift, 0) : ''));
2885+
mathjaxGroup.attr('transform', transform + strTranslate(mjShift, 0));
28862886
}
28872887
});
28882888
}

0 commit comments

Comments
 (0)