Skip to content

Commit

Permalink
Add else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhoyos committed May 21, 2024
1 parent a2ffccd commit cd28997
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions status/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,14 @@ func getKubernetesVersions() []externalService {

if err != nil {
k8sVersions = append(k8sVersions, func() (*ExternalServiceInfo, error) { return nil, err })
} else {
k8sVersions = append(k8sVersions, func() (*ExternalServiceInfo, error) {
return &ExternalServiceInfo{
Name: fmt.Sprintf("%s-%s", "Kubernetes", clusterName),
Version: serverVersion.GitVersion,
}, nil
})
}

k8sVersions = append(k8sVersions, func() (*ExternalServiceInfo, error) {
return &ExternalServiceInfo{
Name: fmt.Sprintf("%s-%s", "Kubernetes", clusterName),
Version: serverVersion.GitVersion,
}, nil
})
}

return k8sVersions
Expand Down

0 comments on commit cd28997

Please sign in to comment.