[golangci-lint]: Return nil instead of err when err is nil.

errwrp
Martin Dosch 1 year ago
parent dd9a661bc4
commit 1def52c15c
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

@ -30,7 +30,7 @@ func connect(options xmpp.Options, directTLS bool) (*xmpp.Client, error) {
// Connect to server
client, err := options.NewClient()
if err == nil {
return client, err
return client, nil
}
} else if adr.Type == "xmpps-client" {
// Use direct TLS
@ -40,7 +40,7 @@ func connect(options xmpp.Options, directTLS bool) (*xmpp.Client, error) {
// Connect to server
client, err := options.NewClient()
if err == nil {
return client, err
return client, nil
}
}
}

Loading…
Cancel
Save