You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2019/10/11 13:49:25 UTC
[camel-k] 02/02: fix #1005: fix findings
This is an automated email from the ASF dual-hosted git repository.
lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 465444d0234bd72ce9cd8a06e1571a5d236bd594
Author: nferraro <ni...@gmail.com>
AuthorDate: Fri Oct 11 15:10:17 2019 +0200
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 3d8d488..3f3d775 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 d92866a..fed00c9 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",
},
},
},