Skip to content

Commit d27759e

Browse files
committed
compare
1 parent 78e9354 commit d27759e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/clojure/clojure/core/async/impl/dispatch.clj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@
7575

7676
(defn ensure-clojure-version! [maj min incr]
7777
(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)))
78+
(when (neg? (compare [major minor incremental] [maj min incr]))
8279
(throw (ex-info (str "core.async go block expander requires Clojure version ≥"
8380
maj "." min "." incr
8481
" to load")

0 commit comments

Comments
 (0)