Use 'when' because there is no else condition

This commit is contained in:
oakes
2014-08-02 15:34:07 -04:00
parent d6174afc1c
commit 5a89eee201

View File

@@ -6,7 +6,7 @@
(find-first :player? entities)
(find-first #(= :menu (:id %)) entities)"
[match-fn entities]
(some #(if (match-fn %) %) entities))
(some #(when (match-fn %) %) entities))
(defmacro on-gl
"Runs the macro body on the GL thread.