Skip to content

Commit 7552be7

Browse files
committed
revert accidental patch commit in doc changes
1 parent c0cc70c commit 7552be7

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,6 @@ to catch and handle."
277277
"returns derefable [val port] if immediate, nil if enqueued"
278278
[fret ports opts]
279279
(assert (pos? (count ports)) "alts must have at least one channel operation")
280-
(doseq [port ports :when (vector? port)]
281-
(assert (not (nil? (nth port 1))) "alts can't put nil on channel"))
282280
(let [flag (alt-flag)
283281
ports (vec ports) ;; ensure vector for indexed nth
284282
n (count ports)

src/test/clojure/clojure/core/async_test.clj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,3 @@
465465
:ok
466466
(catch AssertionError e
467467
:ko))))))
468-
469-
(deftest test-alts-put-nil-invalid
470-
(is
471-
(thrown? AssertionError
472-
(let [c1 (a/chan)
473-
c2 (a/chan)]
474-
(a/alts!! [c1 [c2 nil]])))))

0 commit comments

Comments
 (0)