mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 16:31:11 +00:00
Review fix by @miikka
This commit is contained in:
parent
fe19b57b01
commit
d21f051868
1 changed files with 2 additions and 4 deletions
|
|
@ -56,10 +56,8 @@
|
||||||
{} x))
|
{} x))
|
||||||
|
|
||||||
(defn resolve-routes [data {:keys [coerce] :as opts}]
|
(defn resolve-routes [data {:keys [coerce] :as opts}]
|
||||||
(cond-> (->> (walk data opts)
|
(cond->> (->> (walk data opts) (map-meta merge-meta))
|
||||||
(map-meta merge-meta))
|
coerce (into [] (keep #(coerce % opts)))))
|
||||||
coerce (->> (mapv #(coerce % opts))
|
|
||||||
(filterv identity))))
|
|
||||||
|
|
||||||
(defn compile-route [[p m :as route] {:keys [compile] :as opts}]
|
(defn compile-route [[p m :as route] {:keys [compile] :as opts}]
|
||||||
[p m (if compile (compile route opts))])
|
[p m (if compile (compile route opts))])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue