Skip to content

Commit 91bf13e

Browse files
authored
fix(installer): client is nil in preparation (#1686)
1 parent c03474e commit 91bf13e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/platform/provider/cluster/interface.go

-3
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,6 @@ func (p *DelegateProvider) getCurrentCondition(c *v1.Cluster, phase platformv1.C
435435

436436
// GetRestConfigV1 returns the cluster's rest config
437437
func (p *DelegateProvider) GetRestConfig(ctx context.Context, cluster *platformv1.Cluster, username string) (*rest.Config, error) {
438-
if p.PlatformClient == nil {
439-
return nil, fmt.Errorf("provider platform client is nil")
440-
}
441438
cc, err := credential.GetClusterCredentialV1(ctx, p.PlatformClient, cluster, username)
442439
if err != nil {
443440
return nil, err

0 commit comments

Comments
 (0)