Skip to content

Commit

Permalink
Move remove-empty-keys call to if then-branch to call it only when ne…
Browse files Browse the repository at this point in the history
…eded
  • Loading branch information
Deraen committed Jan 13, 2016
1 parent c341f86 commit 5ab1b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ring/swagger/json_schema.clj
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
[m x {no-meta ::no-meta key-meta :key-meta}]
(if-not no-meta
(merge (json-schema-meta x)
(c/remove-empty-keys (if key-meta (select-keys key-meta [:default])))
(if key-meta (c/remove-empty-keys (select-keys key-meta [:default])))
m)
m))

Expand Down

0 comments on commit 5ab1b88

Please sign in to comment.