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
Hi @rpstw thank you for reporting the problem.
I've created a PR #1030 with a proposal of a fix. Please let me know if the PR solves the problem (I've added your code example to the rule's test cases)
Describe the bug
Unexpected
return in a defer function has no effect
To Reproduce
As of my understanding, it disable the
call-chain
defer check but enable thereturn
defer check, which is our case.Expected behavior
No
return in a defer function has no effect
Desktop (please complete the following information):
Additional context
This issue is similar to #863, which is also the one first on Google, but this issue is not exactly the same.
The text was updated successfully, but these errors were encountered: