Skip to content

Commit

Permalink
fixup! fixup! fixup! set to 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenet committed Jan 25, 2024
1 parent 15e1cb8 commit 9b15ce8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions src/exoscale/coax.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,11 @@
indicates a spec form likely it will return it's generated coercer
from registry :exoscale.coax/forms, otherwise it returns the
identity coercer"
[spec {:as opts :keys [enums]}]
[spec {:as _opts :keys [idents forms enums]}]
(let [spec-exp (si/spec-root spec)
{:as reg :exoscale.coax/keys [idents]} (-> @registry-ref
(update :exoscale.coax/idents
merge
(:idents opts))
(update :exoscale.coax/forms
merge
(:forms opts))
(update :exoscale.coax/idents merge idents)
(update :exoscale.coax/forms merge forms)
(cond-> enums
(assoc :exoscale.coax/enums enums)))]
(or (cond (qualified-ident? spec-exp)
Expand Down Expand Up @@ -321,7 +317,7 @@

(defn coerce-fn
[spec opts]
(if (:exoscale.coax/cache opts true)
(if (:cache opts true)
(cached-coerce-fn spec opts)
(coerce-fn* spec opts)))

Expand Down
2 changes: 1 addition & 1 deletion test/exoscale/coax_test.cljc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns coax-test
(ns exoscale.coax-test
#?(:cljs (:require-macros [cljs.test :refer [deftest testing is are]]
[exoscale.coax :as sc]))
(:require
Expand Down

0 comments on commit 9b15ce8

Please sign in to comment.