From 1f392612ecd8ce7255e69dcf44ecfa720d6e27e5 Mon Sep 17 00:00:00 2001 From: mattmoor-sockpuppet Date: Tue, 6 Aug 2019 09:24:55 -0700 Subject: [PATCH] golang format tools (#509) Produced via: `gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))` `goimports -w $(find -name '*.go' | grep -v vendor)` /assign @n3wscott --- camel/source/pkg/reconciler/camelsource_test.go | 2 +- camel/source/pkg/reconciler/resources/flow.go | 2 +- camel/source/pkg/reconciler/resources/flow_test.go | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/camel/source/pkg/reconciler/camelsource_test.go b/camel/source/pkg/reconciler/camelsource_test.go index 8898003603..3a79d3af78 100644 --- a/camel/source/pkg/reconciler/camelsource_test.go +++ b/camel/source/pkg/reconciler/camelsource_test.go @@ -370,7 +370,7 @@ func makeContext(namespace string, image string) *camelv1alpha1.IntegrationKit { GenerateName: "ctx-", Namespace: namespace, Labels: map[string]string{ - "app": "camel-k", + "app": "camel-k", "camel.apache.org/kit.type": camelv1alpha1.IntegrationKitTypeExternal, }, }, diff --git a/camel/source/pkg/reconciler/resources/flow.go b/camel/source/pkg/reconciler/resources/flow.go index a31702e325..7e6aa18209 100644 --- a/camel/source/pkg/reconciler/resources/flow.go +++ b/camel/source/pkg/reconciler/resources/flow.go @@ -4,7 +4,7 @@ import ( "fmt" "reflect" - "gopkg.in/yaml.v2" + yaml "gopkg.in/yaml.v2" ) // AddSinkToCamelFlow adds the knative endpoint sink to a user-provided yaml flow diff --git a/camel/source/pkg/reconciler/resources/flow_test.go b/camel/source/pkg/reconciler/resources/flow_test.go index c935b23f78..99000c4c52 100644 --- a/camel/source/pkg/reconciler/resources/flow_test.go +++ b/camel/source/pkg/reconciler/resources/flow_test.go @@ -17,8 +17,9 @@ limitations under the License. package resources import ( - "github.com/google/go-cmp/cmp" "testing" + + "github.com/google/go-cmp/cmp" ) func TestCamelFlow(t *testing.T) {