From f4d4559cd4444821a79a727fa4527fcbd712c90e Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 1 Feb 2023 13:40:28 +0100 Subject: [PATCH] :lipstick: Add cosmetic improvemnts on http client validation --- backend/src/app/http/client.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/app/http/client.clj b/backend/src/app/http/client.clj index 542de4d18..f7bb86093 100644 --- a/backend/src/app/http/client.clj +++ b/backend/src/app/http/client.clj @@ -43,9 +43,9 @@ (defn req! "A convencience toplevel function for gradual migration to a new API convention." - ([{:keys [::client] :as holder} request] - (us/assert! ::client-holder holder) + ([{:keys [::client]} request] + (us/assert! ::client client) (send! client request {})) - ([{:keys [::client] :as holder} request options] - (us/assert! ::client-holder holder) + ([{:keys [::client]} request options] + (us/assert! ::client client) (send! client request options)))