]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove empty if statement in element.line.js
authorZach Panzarino <zachary@panzarino.com>
Wed, 10 Aug 2016 01:39:03 +0000 (01:39 +0000)
committerZach Panzarino <zachary@panzarino.com>
Wed, 10 Aug 2016 01:39:03 +0000 (01:39 +0000)
src/elements/element.line.js

index 4d5a108378f769bdf5791f865ebf450d14ed7759..2267fef675384ab40f40d7e41ef4d42c05bc422e 100644 (file)
@@ -150,9 +150,7 @@ module.exports = function(Chart) {
 
                                // First point moves to it's starting position no matter what
                                if (index === 0) {
-                                       if (currentVM.skip) {
-                                               
-                                       } else {
+                                       if (!currentVM.skip) {
                                                ctx.moveTo(currentVM.x, currentVM.y);
                                                lastDrawnIndex = index;
                                        }