Skip to content

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