Skip to content

Commit 226f815

Browse files
golang format tools (#1232)
Produced via: `gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))` `goimports -w $(find -name '*.go' | grep -v vendor)`
1 parent 3d16d5c commit 226f815

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

pkg/duck/sinks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func TestGetSinkURI(t *testing.T) {
111111
reconciler.Options{
112112
DynamicClientSet: fake.NewSimpleDynamicClient(scheme.Scheme, tc.objects...),
113113
},
114-
func(string){},
114+
func(string) {},
115115
)
116116
sourceName := "nilRef"
117117
if tc.ref != nil {

pkg/reconciler/broker/broker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ func TestReconcile(t *testing.T) {
893893
ingressServiceAccountName: ingressSA,
894894
}
895895
},
896-
false,
896+
false,
897897
))
898898
}
899899

pkg/reconciler/channel/channel_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func TestAllCases(t *testing.T) {
156156
channelLister: listers.GetChannelLister(),
157157
}
158158
},
159-
false,
159+
false,
160160
))
161161
}
162162

pkg/reconciler/containersource/containersource_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ import (
3232
sourcesv1alpha1 "github.com/knative/eventing/pkg/apis/sources/v1alpha1"
3333
fakeclientset "github.com/knative/eventing/pkg/client/clientset/versioned/fake"
3434
informers "github.com/knative/eventing/pkg/client/informers/externalversions"
35+
"github.com/knative/eventing/pkg/duck"
3536
"github.com/knative/eventing/pkg/reconciler"
3637
"github.com/knative/eventing/pkg/utils"
37-
"github.com/knative/eventing/pkg/duck"
3838
duckv1alpha1 "github.com/knative/pkg/apis/duck/v1alpha1"
3939
"github.com/knative/pkg/controller"
4040
logtesting "github.com/knative/pkg/logging/testing"
@@ -438,10 +438,10 @@ func TestAllCases(t *testing.T) {
438438
containerSourceLister: listers.GetContainerSourceLister(),
439439
deploymentLister: listers.GetDeploymentLister(),
440440
}
441-
r.sinkReconciler = duck.NewSinkReconciler(opt, func(string){})
441+
r.sinkReconciler = duck.NewSinkReconciler(opt, func(string) {})
442442
return r
443443
},
444-
true,
444+
true,
445445
))
446446
}
447447

pkg/reconciler/eventtype/eventtype_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,6 @@ func TestReconcile(t *testing.T) {
161161
tracker: tracker.New(func(string) {}, 0),
162162
}
163163
},
164-
false,
164+
false,
165165
))
166166
}

pkg/reconciler/namespace/namespace_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,6 @@ func TestAllCases(t *testing.T) {
239239
}
240240

241241
},
242-
false,
242+
false,
243243
))
244244
}

pkg/reconciler/subscription/subscription_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ func TestAllCases(t *testing.T) {
616616
addressableInformer: &fakeAddressableInformer{},
617617
}
618618
},
619-
false,
619+
false,
620620
))
621621
}
622622

pkg/reconciler/testing/factory.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
"encoding/json"
2222
"testing"
2323

24+
"k8s.io/apimachinery/pkg/api/meta"
25+
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2426
"k8s.io/apimachinery/pkg/runtime"
25-
"k8s.io/apimachinery/pkg/api/meta"
26-
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2727

2828
fakedynamicclientset "k8s.io/client-go/dynamic/fake"
2929
fakekubeclientset "k8s.io/client-go/kubernetes/fake"

pkg/reconciler/trigger/trigger_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ func TestAllCases(t *testing.T) {
532532
tracker: tracker.New(func(string) {}, 0),
533533
}
534534
},
535-
false,
535+
false,
536536
))
537537
}
538538

0 commit comments

Comments
 (0)