Skip to content

Commit

Permalink
fix spec any in cljs
Browse files Browse the repository at this point in the history
  • Loading branch information
wandersoncferreira committed Mar 22, 2020
1 parent 9ff4dd2 commit e925901
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spec_tools/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@
(fn [v item]
(let [transformed (accept item v options)
valid-branch? (s/valid? (create-spec item) transformed)
any-spec? (= (:form spec) 'clojure.core/any?)]
any-spec? (= (:form spec) #?(:clj 'clojure.core/any?
:cljs 'cljs.core/any?))]
(cond
(and valid-branch? (not any-spec?)) (reduced transformed)
(= transformed v) v
Expand Down

0 comments on commit e925901

Please sign in to comment.