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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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_eventis something like this:Clearly that
casecode should have had anelseto 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_somethinganddo_something_else, but nothing forevent_store.publish(...).Beta Was this translation helpful? Give feedback.
All reactions