From 2ba01028a08293d83f64dcd64e1276c0357b056f Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 28 Oct 2018 16:28:12 +0900 Subject: [PATCH] Remove unnecessary let --- modules/reitit-core/src/reitit/core.cljc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/reitit-core/src/reitit/core.cljc b/modules/reitit-core/src/reitit/core.cljc index 03a15293..ff30fac8 100644 --- a/modules/reitit-core/src/reitit/core.cljc +++ b/modules/reitit-core/src/reitit/core.cljc @@ -378,9 +378,8 @@ (route-names [_] names) (match-by-path [_ path] - (let [slashed-path (ensure-slash path)] - (or (match-by-path static-router path) - (match-by-path wildcard-router path)))) + (or (match-by-path static-router path) + (match-by-path wildcard-router path))) (match-by-name [_ name] (or (match-by-name static-router name) (match-by-name wildcard-router name)))