Closed weavejester closed 10 years ago
There's a problem with the with-channel logic, specifically on lines 59 to 61:
with-channel
opts (when opts? opts) body (cond->> body (not opts?) (cons opts))
If opts? is false, then opts is bound to nil, and body is bound to (cons nil body).
opts?
opts
nil
body
(cons nil body)
To fix this, the opts rebinding should come after the body rebinding.
Thanks James - I'll incorporate your fix when I get a moment. Failing that, if you've got a fork, could you submit a PR?
Cheers,
James
PR submitted (#19).
Fixed in #19 (deployed as 0.4.2), thanks!
There's a problem with the
with-channel
logic, specifically on lines 59 to 61:If
opts?
is false, thenopts
is bound tonil
, andbody
is bound to(cons nil body)
.To fix this, the opts rebinding should come after the body rebinding.