Remove unnecessary nil check
This commit is contained in:
@@ -260,11 +260,10 @@ such as :on-begin-contact."
|
||||
(.step world time-step velocity-iterations position-iterations))
|
||||
([screen entities]
|
||||
(step! screen)
|
||||
(when entities
|
||||
(map (fn [e]
|
||||
(if (u/get-obj e :body)
|
||||
(assoc e
|
||||
:x (body-x e)
|
||||
:y (body-y e))
|
||||
e))
|
||||
entities))))
|
||||
(map (fn [e]
|
||||
(if (u/get-obj e :body)
|
||||
(assoc e
|
||||
:x (body-x e)
|
||||
:y (body-y e))
|
||||
e))
|
||||
entities)))
|
||||
|
||||
Reference in New Issue
Block a user