From e33d6147209fe16c542aa09b2e0bb7dd83f8bc7d Mon Sep 17 00:00:00 2001 From: Krisztian Gulyas Date: Fri, 23 Jun 2023 22:00:02 +0200 Subject: [PATCH] cljstyle --- examples/jwt/src/backend/app/core.clj | 2 +- src/xiana/interceptor.clj | 12 ++++++------ src/xiana/jwt/action.clj | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/examples/jwt/src/backend/app/core.clj b/examples/jwt/src/backend/app/core.clj index d029a1d8..46a2a675 100644 --- a/examples/jwt/src/backend/app/core.clj +++ b/examples/jwt/src/backend/app/core.clj @@ -6,9 +6,9 @@ [xiana.config :as config] [xiana.handler :as x-handler] [xiana.interceptor :as x-interceptors] - [xiana.jwt.action :as jwt-a] [xiana.interceptor.error] [xiana.jwt :as jwt] + [xiana.jwt.action :as jwt-a] [xiana.jwt.interceptors :as jwt-interceptors] [xiana.route :as x-routes] [xiana.webserver :as ws])) diff --git a/src/xiana/interceptor.clj b/src/xiana/interceptor.clj index 1ee81cda..6c80e2ce 100644 --- a/src/xiana/interceptor.clj +++ b/src/xiana/interceptor.clj @@ -172,13 +172,13 @@ schemas (merge (get-in state [:request-data :match :data :parameters]) (get-in state [:request-data :match :data method :parameters])) cc (cond-> {} - (:path schemas) - (assoc :path (valid? (:path schemas) path)) + (:path schemas) + (assoc :path (valid? (:path schemas) path)) - (:query schemas) - (assoc :query (valid? (:query schemas) query)) + (:query schemas) + (assoc :query (valid? (:query schemas) query)) - (:form schemas) - (assoc :form (valid? (:form schemas) form-params)))] + (:form schemas) + (assoc :form (valid? (:form schemas) form-params)))] (update-in state [:request :params] merge cc))))}) diff --git a/src/xiana/jwt/action.clj b/src/xiana/jwt/action.clj index c8901908..0a589eee 100644 --- a/src/xiana/jwt/action.clj +++ b/src/xiana/jwt/action.clj @@ -1,5 +1,6 @@ (ns xiana.jwt.action - (:require [xiana.jwt :as jwt])) + (:require + [xiana.jwt :as jwt])) (defn refresh-token [state]