From 5a89eee201d0ea143f9b8f6aa95f8e97dd50f180 Mon Sep 17 00:00:00 2001 From: oakes Date: Sat, 2 Aug 2014 15:34:07 -0400 Subject: [PATCH] Use 'when' because there is no else condition --- src/play_clj/core_utils.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/play_clj/core_utils.clj b/src/play_clj/core_utils.clj index 5a1ac7c..a2930bb 100644 --- a/src/play_clj/core_utils.clj +++ b/src/play_clj/core_utils.clj @@ -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.