Skip to content

Commit

Permalink
tests: make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredallard committed Sep 24, 2020
1 parent d209d78 commit c097439
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/expose/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (p *ServiceForward) createServerPortForward(ctx context.Context, po *corev1
return kube.CreatePortForward(ctx, p.c.k.CoreV1().RESTClient(), p.c.kconf, po, "0.0.0.0", []string{"0:50"})
}

func (p *ServiceForward) createServerPodAndTransport(ctx context.Context) (func(), int, error) { //nolint:funlen,gocyclo
func (p *ServiceForward) createServerPodAndTransport(ctx context.Context) (cleanupFn func(), port int, err error) { //nolint:funlen,gocyclo
// map the service ports into containerPorts, using the
containerPorts := make([]corev1.ContainerPort, len(p.Ports))
for i, port := range p.Ports {
Expand Down Expand Up @@ -185,7 +185,6 @@ loop:
return func() {}, 0, errors.Wrap(err, "failed to get generated underlying transport port")
}

port := 0
for _, p := range ports {
if p.Remote == 50 {
port = int(p.Local)
Expand Down

0 comments on commit c097439

Please sign in to comment.