We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78e9354 commit d27759eCopy full SHA for d27759e
src/main/clojure/clojure/core/async/impl/dispatch.clj
@@ -75,10 +75,7 @@
75
76
(defn ensure-clojure-version! [maj min incr]
77
(let [{:keys [major minor incremental]} *clojure-version*]
78
- (when-not
79
- (or (> major maj)
80
- (and (= major maj) (> minor min))
81
- (and (= major maj) (= minor min) (>= incremental incr)))
+ (when (neg? (compare [major minor incremental] [maj min incr]))
82
(throw (ex-info (str "core.async go block expander requires Clojure version ≥"
83
maj "." min "." incr
84
" to load")
0 commit comments