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

Ignore return value of unsubscribe handler #1113

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mshgh
Copy link

@mshgh mshgh commented May 6, 2023

It is silently assumed unsubscribe handler has not return value, however if it has it compromises subscriptions processing. To make the code more robust I propose to ignore the return value and push into subs always false (it would work with undefined too, but false is shorter ;)

it is silently assumed unsubscribe handler has not return value, however if it has it compromises subscriptions processing
to make the code more robust I propose to ignore the return value and push into `subs` always `false`
(it would work with `unsubscribe` too, but `false` is shorter ;)
@mshgh
Copy link
Author

mshgh commented May 6, 2023

I was asked to cover this change by tests, but I am not sure how to approach it. #1105 (comment)

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

Successfully merging this pull request may close these issues.

1 participant