Fix invalid macroexpansion of defcfn without docstring
This commit is contained in:
parent
9c0e1d736e
commit
b01f4229e5
2 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).
|
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Fixed
|
||||||
|
- Usage of `defcfn` without a docstring produced an invalid `def` form
|
||||||
|
|
||||||
## [0.1.169] - 2021-09-28
|
## [0.1.169] - 2021-09-28
|
||||||
### Added
|
### Added
|
||||||
|
|
|
||||||
|
|
@ -579,7 +579,8 @@
|
||||||
(mapv (comp symbol name)
|
(mapv (comp symbol name)
|
||||||
(:native-arglist args)))))))
|
(:native-arglist args)))))))
|
||||||
(:attr-map args)))
|
(:attr-map args)))
|
||||||
~@(list (:doc args))
|
~@(when-let [doc (:doc args)]
|
||||||
|
(list doc))
|
||||||
fun#))))
|
fun#))))
|
||||||
(s/fdef defcfn
|
(s/fdef defcfn
|
||||||
:args ::defcfn-args)
|
:args ::defcfn-args)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue