Use 'when' because there is no else condition
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
(find-first :player? entities)
|
(find-first :player? entities)
|
||||||
(find-first #(= :menu (:id %)) entities)"
|
(find-first #(= :menu (:id %)) entities)"
|
||||||
[match-fn entities]
|
[match-fn entities]
|
||||||
(some #(if (match-fn %) %) entities))
|
(some #(when (match-fn %) %) entities))
|
||||||
|
|
||||||
(defmacro on-gl
|
(defmacro on-gl
|
||||||
"Runs the macro body on the GL thread.
|
"Runs the macro body on the GL thread.
|
||||||
|
|||||||
Reference in New Issue
Block a user