diff --git a/modules/reitit-http/src/reitit/http.cljc b/modules/reitit-http/src/reitit/http.cljc index db4158b0..bc8c0da3 100644 --- a/modules/reitit-http/src/reitit/http.cljc +++ b/modules/reitit-http/src/reitit/http.cljc @@ -22,12 +22,12 @@ compile (fn [[path data] opts scope] (interceptor/compile-result [path data] opts scope)) ->endpoint (fn [p d m s] - (let [d (ring/-compile-coercion d)] - (let [compiled (compile [p d] opts s)] - (-> compiled - (map->Endpoint) - (assoc :path p) - (assoc :method m))))) + (let [d (ring/-compile-coercion d) + compiled (compile [p d] opts s)] + (-> compiled + (map->Endpoint) + (assoc :path p) + (assoc :method m)))) ->methods (fn [any? data] (reduce (fn [acc method] diff --git a/test/clj/reitit/http_test.clj b/test/clj/reitit/http_test.clj index 1f04f72c..02686f1f 100644 --- a/test/clj/reitit/http_test.clj +++ b/test/clj/reitit/http_test.clj @@ -308,10 +308,10 @@ ["/ping" {:get {:interceptors [{:enter #(a/go %)}] :handler (fn [_] (a/go response))}}]) (ring/create-default-handler) - {:executor sieppari/executor})] - (let [respond (promise)] - (app {:request-method :get, :uri "/ping"} respond ::irrelevant) - (is (= response (deref respond 100 ::timeout))))))) + {:executor sieppari/executor}) + respond (promise)] + (app {:request-method :get, :uri "/ping"} respond ::irrelevant) + (is (= response (deref respond 100 ::timeout)))))) (defrecord MyAsyncContext [])