You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixesrubocop#11682.
This PR fixes a false positive for `Lint/UselessRescue`
when using `Thread#raise` in `rescue` clause.
In fact, any method call with a receiver will not be "useless rescue",
not just `Thread#raise`.
Fixes#11682.
This PR fixes a false positive for `Lint/UselessRescue`
when using `Thread#raise` in `rescue` clause.
In fact, any method call with a receiver will not be "useless rescue",
not just `Thread#raise`.
We're monkey-patching a gem to elevate its exceptions to a parent thread.
Expected behavior
I believe
Lint/UselessRescue
should not complain about theraise
method call on another thread.Actual behavior
Steps to reproduce the problem
See snippet above.
RuboCop version
The text was updated successfully, but these errors were encountered: