Skip to content

Commit f3b3b97

Browse files
committed
Cosmetics
1 parent 7c561ea commit f3b3b97

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

pkg/controllers/bucketController.go

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ func BucketController(
3333
// check if v1 is supported
3434
_, err := dynamicClient.Resource(bucketResource).Namespace("").List(context.TODO(), metav1.ListOptions{})
3535
if err != nil {
36-
// try and possibly fail (bucket-controller is not mandatory) with v1beta2
3736
bucketResource = bucketResourceV1beta2
3837
}
3938

pkg/flux/flux.go

-2
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,6 @@ func State(c *kubernetes.Clientset, dc *dynamic.DynamicClient) (*FluxState, erro
459459
buckets, err := dc.Resource(bucketGVR).
460460
Namespace("").
461461
List(context.TODO(), metav1.ListOptions{})
462-
463462
if err != nil {
464463
if strings.Contains(err.Error(), "the server could not find the requested resource") {
465464
// let's try the deprecated v1beta2
@@ -473,7 +472,6 @@ func State(c *kubernetes.Clientset, dc *dynamic.DynamicClient) (*FluxState, erro
473472
return nil, err
474473
}
475474
}
476-
477475
for _, repo := range buckets.Items {
478476
unstructured := repo.UnstructuredContent()
479477
var bucket sourcev1beta2.Bucket

0 commit comments

Comments
 (0)