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

Always return the Event object, regardless of what the async block returns. #344

Merged
merged 1 commit into from
Jun 5, 2015
Merged

Always return the Event object, regardless of what the async block returns. #344

merged 1 commit into from
Jun 5, 2015

Conversation

lucasmazza
Copy link
Contributor

When using an async block, the capture methods would return the block returned value when called or the Event object when async isn't defined, which could possibly break any client code that would always expect the event object instead of a ActiveJob::Base instance or a Sidekiq job, for instance.

…k returns.

When using an `async` block, the capture methods would return the block returned
value when called or the `Event` object when async isn't defined, which could
possibly break any client code that would always expect the event object instead
of a `ActiveJob::Base` instance or a `Sidekiq` job, for instance.
@nateberkopec
Copy link
Contributor

👍 for always returning the same type!

nateberkopec added a commit that referenced this pull request Jun 5, 2015
Always return the `Event` object, regardless of what the `async` block returns.
@nateberkopec nateberkopec merged commit 1217a2d into getsentry:master Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants