From f2d3d0a125e785fe3f4add1fb51317e9fd316533 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Wed, 6 Jun 2018 10:33:58 +0300 Subject: [PATCH] if -> when --- modules/reitit-core/src/reitit/core.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/reitit-core/src/reitit/core.cljc b/modules/reitit-core/src/reitit/core.cljc index eea9ab7a..b3785447 100644 --- a/modules/reitit-core/src/reitit/core.cljc +++ b/modules/reitit-core/src/reitit/core.cljc @@ -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]