Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed Oct 24, 2024
1 parent bb091aa commit 21d2536
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/flanders/malli.clj
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
(if-some [tests (some-> (not-empty tests) vec)]
(let [ntests (count tests)]
(into [:multi {:dispatch (fn [v]
(or (some #(when (some? ((nth tests %) v)) %) (range ntests))
(or (some #(when ((nth tests %) v) %) (range ntests))
:dispatch-failed))}]
(map-indexed (fn [i s]
[i (let [s (m/schema s opts)]
Expand Down
2 changes: 1 addition & 1 deletion src/flanders/schema.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
EitherType
(->schema' [{:keys [choices tests] :as dll} f]
(-> (let [choice-schemas (map f choices)]
(apply s/conditional (mapcat vector (map #(comp some? %) tests) choice-schemas)))
(apply s/conditional (mapcat vector tests choice-schemas)))
(describe dll)))

MapEntry
Expand Down

0 comments on commit 21d2536

Please sign in to comment.