Skip to content

Commit

Permalink
Fix a bad named function
Browse files Browse the repository at this point in the history
Co-authored-by: Iain Wood <iain.wood@flexiana.com>
  • Loading branch information
gmsvalente and Iain Wood committed Dec 22, 2023
1 parent 58ae122 commit db2b660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xiana/swagger.clj
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
(def all-methods
[:get :patch :trace :connect :delete :head :post :options :put])

(defn- no-method?
(defn- has-no-method?
[opt-map]
(:action opt-map))

Expand All @@ -62,7 +62,7 @@

(defn- process-opt-map
[opt-map all-methods]
(if (no-method? opt-map)
(if (has-no-method? opt-map)
(-> opt-map
(assoc-in [:get :handler] identity)
(assoc-in [:get :action] (:action opt-map)))
Expand Down

0 comments on commit db2b660

Please sign in to comment.