Skip to content

Commit

Permalink
Fix remove-empty-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Deraen committed Jan 13, 2016
1 parent 5ab1b88 commit b4ed0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ring/swagger/common.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b4ed0d1

Please sign in to comment.