Merge pull request #60 from ducky427/master

Remove an eastwood warning in defnp macro (ducky427)
This commit is contained in:
Peter Taoussanis 2014-04-01 21:12:55 +07:00
commit 0a22db4722

View File

@ -134,7 +134,7 @@
(let [[name [params & sigs]] (encore/name-with-attrs name sigs)
prepost-map (when (and (map? (first sigs)) (next sigs)) (first sigs))
body (if prepost-map (next sigs) sigs)]
`(defn ~name ~params ~prepost-map
`(defn ~name ~params ~(or prepost-map {})
(pspy ~(clojure.core/name name)
~@body))))