From b4ed0d12a202c2968400f89503953a2d78af1e93 Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Wed, 13 Jan 2016 22:36:01 +0200 Subject: [PATCH] Fix remove-empty-keys --- src/ring/swagger/common.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ring/swagger/common.clj b/src/ring/swagger/common.clj index a104dbb6..3e3d0247 100644 --- a/src/ring/swagger/common.clj +++ b/src/ring/swagger/common.clj @@ -4,7 +4,7 @@ (defn remove-empty-keys "Removes empty properties with nil value from a map" [m] - (into (empty m) (filter (comp not nil? key) m))) + (into (empty m) (filter (comp not nil? val) m))) (defn value-of "Extracts value of for var, symbol or returns itself"