mirror of
https://github.com/status-im/timbre.git
synced 2025-02-16 13:46:22 +00:00
Merge pull request #60 from ducky427/master
Remove an eastwood warning in defnp macro (ducky427)
This commit is contained in:
commit
0a22db4722
@ -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))))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user