mirror of
https://salsa.debian.org/mdosch/go-sendxmpp
synced 2024-11-18 21:25:31 +00:00
[golangci-lint]: Return nil instead of err when err is nil.
This commit is contained in:
parent
dd9a661bc4
commit
1def52c15c
@ -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…
Reference in New Issue
Block a user