Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-su committed Apr 18, 2024
1 parent 7d74f04 commit 460f627
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/conformance/ingress/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,6 @@ func CreateDialContext(ctx context.Context, t *testing.T, ing *v1alpha1.Ingress,
}
} else {

Check warning on line 1099 in test/conformance/ingress/util.go

View workflow job for this annotation

GitHub Actions / style / Golang / Lint

indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
t.Fatal("Service does not have a supported shape (not type LoadBalancer? missing --ingressendpoint?).")
return nil // Unreachable
}
} else if ing.Status.PublicLoadBalancer.Ingress[0].IP != "" {
dial := network.NewBackoffDialer(dialBackoff)
Expand All @@ -1114,8 +1113,8 @@ func CreateDialContext(ctx context.Context, t *testing.T, ing *v1alpha1.Ingress,
}
} else {
t.Fatal("No IP or domain found on ingress.")
return nil // Unreachable
}
return nil // Unreachable
}

type RequestOption func(*http.Request)
Expand Down

0 comments on commit 460f627

Please sign in to comment.