mirror of
https://github.com/taoensso/telemere.git
synced 2025-12-17 09:51:12 +00:00
[fix] Fix bad signal-content-fn parent formatting
This commit is contained in:
parent
1bdb667b6c
commit
3746de8039
1 changed files with 6 additions and 2 deletions
|
|
@ -556,8 +556,12 @@
|
||||||
|
|
||||||
(defn- format-parent [ns {:keys [id uid]}]
|
(defn- format-parent [ns {:keys [id uid]}]
|
||||||
(if id
|
(if id
|
||||||
|
(if uid
|
||||||
{:id (symbol (format-id ns id)), :uid uid}
|
{:id (symbol (format-id ns id)), :uid uid}
|
||||||
{:id (symbol (format-id ns id))}))
|
{:id (symbol (format-id ns id))})
|
||||||
|
(if uid
|
||||||
|
{:uid uid}
|
||||||
|
nil)))
|
||||||
|
|
||||||
(comment (str (format-parent (str *ns*) {:id ::id1 :uid "uid1"})))
|
(comment (str (format-parent (str *ns*) {:id ::id1 :uid "uid1"})))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue