]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove unnecessary check for color library (#7043)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Fri, 31 Jan 2020 12:09:25 +0000 (04:09 -0800)
committerGitHub <noreply@github.com>
Fri, 31 Jan 2020 12:09:25 +0000 (07:09 -0500)
src/helpers/index.js

index 8e28efcdc19d4b07228f878575e326944029a2b8..2b00bef4d72f16cb92ba0982c681eb0b055ef9eb 100644 (file)
@@ -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