Skip to content

Commit fd7a80b

Browse files
author
Luca Bruno
authored
Merge pull request #313 from muesli/vet-fixes
activation: fix tautological error handling
2 parents e64a0ec + 32e4945 commit fd7a80b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activation/listeners.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TLSListeners(tlsConfig *tls.Config) ([]net.Listener, error) {
6767
return nil, err
6868
}
6969

70-
if tlsConfig != nil && err == nil {
70+
if tlsConfig != nil {
7171
for i, l := range listeners {
7272
// Activate TLS only for TCP sockets
7373
if l.Addr().Network() == "tcp" {
@@ -88,7 +88,7 @@ func TLSListenersWithNames(tlsConfig *tls.Config) (map[string][]net.Listener, er
8888
return nil, err
8989
}
9090

91-
if tlsConfig != nil && err == nil {
91+
if tlsConfig != nil {
9292
for _, ll := range listeners {
9393
// Activate TLS only for TCP sockets
9494
for i, l := range ll {

0 commit comments

Comments
 (0)