diff --git a/src/geom/Line.js b/src/geom/Line.js index 74d71f79b..ced2d0665 100644 --- a/src/geom/Line.js +++ b/src/geom/Line.js @@ -71,10 +71,8 @@ Phaser.Line.prototype = { { return this.setTo(startSprite.center.x, startSprite.center.y, endSprite.center.x, endSprite.center.y); } - else - { - return this.setTo(startSprite.x, startSprite.y, endSprite.x, endSprite.y); - } + + return this.setTo(startSprite.x, startSprite.y, endSprite.x, endSprite.y); },