From e8c3035254119cd5ae19178451e96753ef484600 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Sun, 30 Jun 2024 18:31:14 +0300 Subject: [PATCH] . --- modules/reitit-core/src/reitit/impl.cljc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/reitit-core/src/reitit/impl.cljc b/modules/reitit-core/src/reitit/impl.cljc index 243ef4f0..164cbb82 100644 --- a/modules/reitit-core/src/reitit/impl.cljc +++ b/modules/reitit-core/src/reitit/impl.cljc @@ -36,14 +36,12 @@ (defn -copy-meta [to from] (letfn [(-with-meta [x m] - (try (with-meta x m) - (catch #?(:clj Exception, :cljs js/Error) _ x))) + (try (with-meta x m) (catch #?(:clj Exception, :cljs js/Error) _ x))) (-copy [l p m] (reduce-kv (fn [l k v] (let [p' (conj p k) - m' (when (empty? (meta v)) - (meta (get-in from p')))] + m' (when (empty? (meta v)) (meta (get-in from p')))] (cond m' (update-in l p' -with-meta m') (and (map? v) (not (record? v)) (seq v)) (-copy l p' v)