Replies: 1 comment 3 replies
-
I believe it's by coincidence - there is a conversion of argument into an array and |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Not sure if this is a bug, but I noticed today that
event_store.publish(nil)
does not raise an error.Is this intentional behavior? Personally I found it very surprising.
Context is that I had some code like:
and
#choose_event
is something like this:Clearly that
case
code should have had anelse
to ensure it was exhaustive, but it didn't, and so the nil event was "published" instead. Made for a funny debug session when the logs showeddo_something
anddo_something_else
, but nothing forevent_store.publish(...)
.Beta Was this translation helpful? Give feedback.
All reactions