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
deferUnlambda: False positive for mutated variable #1401
Labels
bug
Something isn't working
Comments
Need to convert this rule to a |
For now sounds ok. Feel free to try. |
ehsundar
added a commit
to ehsundar/go-critic
that referenced
this issue
Feb 25, 2024
- fix assigned closure function false-positive issue go-critic#1401
ehsundar
added a commit
to ehsundar/go-critic
that referenced
this issue
Feb 25, 2024
- fix assigned closure function false-positive issue go-critic#1401
ehsundar
added a commit
to ehsundar/go-critic
that referenced
this issue
Feb 25, 2024
- fix assigned closure function false-positive issue go-critic#1401
ehsundar
added a commit
to ehsundar/go-critic
that referenced
this issue
Feb 25, 2024
- fix assigned closure function false-positive issue go-critic#1401
ehsundar
added a commit
to ehsundar/go-critic
that referenced
this issue
Feb 25, 2024
- fix assigned closure function false-positive issue go-critic#1401
ehsundar
added a commit
to ehsundar/go-critic
that referenced
this issue
Feb 28, 2024
- fix assigned closure function false-positive issue go-critic#1401
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following the suggestion changes the behavior of the program. Instead of calling whatever
foo
was set to at the end of the function, we now instead call whateverfoo
was set to at the time of thedefer
call.The text was updated successfully, but these errors were encountered: