mirror of
https://github.com/metosin/reitit.git
synced 2026-01-23 14:49:02 +00:00
if -> when
This commit is contained in:
parent
b2c0b2fdfa
commit
f2d3d0a125
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@
|
|||
(walk-one [pacc macc routes]
|
||||
(if (vector? (first routes))
|
||||
(walk-many pacc macc routes)
|
||||
(if (string? (first routes))
|
||||
(when (string? (first routes))
|
||||
(let [[path & [maybe-arg :as args]] routes
|
||||
[data childs] (if (or (vector? maybe-arg) (nil? maybe-arg))
|
||||
[{} args]
|
||||
|
|
|
|||
Loading…
Reference in a new issue