Skip to content

Conversation

@didebughu
Copy link

When I running golangci-lint with the sqlclosecheck@v0.5.1 a runtime panic occurs due to a nil pointer dereference because ssa.Value.Referrers() may return nil.

This fix only adds defensive checks. I run the tests (make test) and test results diffs show no differences.

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