From 465444d0234bd72ce9cd8a06e1571a5d236bd594 Mon Sep 17 00:00:00 2001 From: nferraro Date: Fri, 11 Oct 2019 15:10:17 +0200 Subject: [PATCH] fix #1005: fix findings --- pkg/apis/camel/v1alpha1/integration_types.go | 2 +- pkg/trait/dependencies_test.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/apis/camel/v1alpha1/integration_types.go b/pkg/apis/camel/v1alpha1/integration_types.go index 3d8d488acb..3f3d775195 100644 --- a/pkg/apis/camel/v1alpha1/integration_types.go +++ b/pkg/apis/camel/v1alpha1/integration_types.go @@ -109,7 +109,7 @@ type SourceSpec struct { Language Language `json:"language,omitempty"` // Loader is an optional id of the org.apache.camel.k.RoutesLoader that will // interpret this source at runtime - Loader string `json:"loader,omitempty"` + Loader string `json:"loader,omitempty"` } // Language -- diff --git a/pkg/trait/dependencies_test.go b/pkg/trait/dependencies_test.go index d92866a283..fed00c9818 100644 --- a/pkg/trait/dependencies_test.go +++ b/pkg/trait/dependencies_test.go @@ -22,7 +22,6 @@ import ( "github.com/apache/camel-k/pkg/apis/camel/v1alpha1" "github.com/apache/camel-k/pkg/util/test" - "github.com/stretchr/testify/assert" ) @@ -204,7 +203,7 @@ func TestIntegrationCustomLoader(t *testing.T) { Content: "- from:\n uri: direct:foo\n steps:\n - to: log:bar", }, Language: v1alpha1.LanguageYaml, - Loader: "knative-source-yaml", + Loader: "knative-source-yaml", }, }, },