We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This pattern is repeated several times in melody_test.go:
conn, err := NewDialer(server.URL) defer conn.Close() if err != nil { t.Error(err) return false }
However, if there is an error, this is liable to cause a null reference panic.
The text was updated successfully, but these errors were encountered:
@riking the defer clause should be placed after the if block, the correct code may looks like below:
defer
if
conn, err := NewDialer(server.URL) if err != nil { t.Error(err) return false } defer conn.Close()
A good luck to you if it can solve the problem.
Sorry, something went wrong.
No branches or pull requests
This pattern is repeated several times in melody_test.go:
However, if there is an error, this is liable to cause a null reference panic.
The text was updated successfully, but these errors were encountered: