trailblazer-operation
trailblazer-operation copied to clipboard
Result#success? returns false for any custom event
Below line assumes that any end_event
apart from End::Success
would make Result
unsuccessful.
https://github.com/trailblazer/trailblazer-operation/blob/ddceff65a63ff7a72aa93cde3e2752d0d20d2512/lib/trailblazer/operation/railway.rb#L15
But as any custom event wouldn't mean the result is a failure, is it possible to do the opposite and check if event is End::Failure
?