Skip to content

Commit

Permalink
Merge pull request #313 from muesli/vet-fixes
Browse files Browse the repository at this point in the history
activation: fix tautological error handling
  • Loading branch information
Luca Bruno authored Jul 19, 2019
2 parents e64a0ec + 32e4945 commit fd7a80b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activation/listeners.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TLSListeners(tlsConfig *tls.Config) ([]net.Listener, error) {
return nil, err
}

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

if tlsConfig != nil && err == nil {
if tlsConfig != nil {
for _, ll := range listeners {
// Activate TLS only for TCP sockets
for i, l := range ll {
Expand Down

0 comments on commit fd7a80b

Please sign in to comment.