From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Wed, 6 Nov 2019 12:13:40 +0000 (-0800) Subject: Remove check that is always true (#6701) X-Git-Tag: v3.0.0-alpha~263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b90552b9ca851bf8567acca5176597e6f316a68f;p=thirdparty%2FChart.js.git Remove check that is always true (#6701) --- diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 6cc8b3ab3..d5529aa00 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -1012,11 +1012,6 @@ var Scale = Element.extend({ for (i = 0; i < ticksLength; ++i) { tick = ticks[i] || {}; - // autoskipper skipped this tick (#4635) - if (isNullOrUndef(tick.label) && i < ticks.length) { - continue; - } - if (i === me.zeroLineIndex && options.offset === offsetGridLines) { // Draw the first index specially lineWidth = gridLines.zeroLineWidth; @@ -1103,11 +1098,6 @@ var Scale = Element.extend({ tick = ticks[i]; label = tick.label; - // autoskipper skipped this tick (#4635) - if (isNullOrUndef(label)) { - continue; - } - pixel = me.getPixelForTick(tick._index || i) + optionTicks.labelOffset; font = tick.major ? fonts.major : fonts.minor; lineHeight = font.lineHeight;