remove extraneous return statements

This commit is contained in:
2021-03-17 11:52:57 -06:00
parent 188c78073d
commit 0ecffa534f
8 changed files with 28 additions and 46 deletions

View File

@@ -12,7 +12,7 @@
(setSize 8 8)
(offset.set 4 4))
(defmethod updateMovement []
(defmethod :Void updateMovement []
(let [[&mut up &mut down &mut left &mut right]
(map [[UP W] [DOWN S] [LEFT A] [RIGHT D]] FlxG.keys.anyPressed)]
(when (and up down)
@@ -60,8 +60,7 @@
(FlxObject.DOWN
(animation.play "d"))
(otherwise
(return))))
(return)))
(return))))))
(defmethod &override update [:Float elapsed]
(updateMovement)