From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Fri, 31 Jan 2020 12:09:25 +0000 (-0800) Subject: Remove unnecessary check for color library (#7043) X-Git-Tag: v3.0.0-alpha~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13851c0209a1478184743d290b2ec07fc838a866;p=thirdparty%2FChart.js.git Remove unnecessary check for color library (#7043) --- diff --git a/src/helpers/index.js b/src/helpers/index.js index 8e28efcdc..2b00bef4d 100644 --- a/src/helpers/index.js +++ b/src/helpers/index.js @@ -11,11 +11,7 @@ import * as options from './helpers.options'; import * as math from './helpers.math'; import * as rtl from './helpers.rtl'; -const colorHelper = !color ? - function(value) { - console.error('Color.js not found!'); - return value; - } : +const colorHelper = function(value) { if (value instanceof CanvasGradient || value instanceof CanvasPattern) { // TODO: figure out what this should be. Previously returned