Skip to content

Commit

Permalink
Kubernetes SD: Fix golint issue
Browse files Browse the repository at this point in the history
Signed-off-by: Takashi Kusumi <tkusumi@zlab.co.jp>
  • Loading branch information
tksm committed Aug 24, 2021
1 parent 40981c4 commit 3ab8559
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions discovery/kubernetes/ingress_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ func (i *ingressAdaptorV1) ingressClassName() *string { return i.ingress.Sp
func (i *ingressAdaptorV1) tlsHosts() []string {
var hosts []string
for _, tls := range i.ingress.Spec.TLS {
for _, host := range tls.Hosts {
hosts = append(hosts, host)
}
hosts = append(hosts, tls.Hosts...)
}
return hosts
}
Expand Down Expand Up @@ -107,9 +105,7 @@ func (i *ingressAdaptorV1Beta1) ingressClassName() *string { return i.ingre
func (i *ingressAdaptorV1Beta1) tlsHosts() []string {
var hosts []string
for _, tls := range i.ingress.Spec.TLS {
for _, host := range tls.Hosts {
hosts = append(hosts, host)
}
hosts = append(hosts, tls.Hosts...)
}
return hosts
}
Expand Down

0 comments on commit 3ab8559

Please sign in to comment.