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

This commit is contained in:
Martin Dosch 2023-06-05 21:57:19 +02:00
parent dd9a661bc4
commit 1def52c15c
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

View File

@ -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
}
}
}