Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Result#success? returns false for any custom event #51

Open
yogeshjain999 opened this issue Sep 27, 2020 · 0 comments
Open

Result#success? returns false for any custom event #51

yogeshjain999 opened this issue Sep 27, 2020 · 0 comments

Comments

@yogeshjain999
Copy link
Member

Below line assumes that any end_event apart from End::Success would make Result unsuccessful.

Result.new(end_event.kind_of?(End::Success), options, end_event)

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant