You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/11/28 16:25:54 UTC

[camel-k] branch fix-format created (now 747eac5)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch fix-format
in repository https://gitbox.apache.org/repos/asf/camel-k.git.


      at 747eac5  Make go-report happy again with gofmt

This branch includes the following new commits:

     new 747eac5  Make go-report happy again with gofmt

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel-k] 01/01: Make go-report happy again with gofmt

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch fix-format
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 747eac5b9a4a0cb09995bccbdc947936fc1154cd
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Nov 28 17:24:59 2018 +0100

    Make go-report happy again with gofmt
---
 cmd/kamel/main.go            | 2 +-
 pkg/metadata/dependencies.go | 2 +-
 pkg/metadata/types.go        | 2 +-
 pkg/metadata/uris.go         | 5 +++--
 pkg/trait/util.go            | 1 -
 pkg/util/knative/uri.go      | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/cmd/kamel/main.go b/cmd/kamel/main.go
index 5f95ea9..e711d0d 100644
--- a/cmd/kamel/main.go
+++ b/cmd/kamel/main.go
@@ -25,7 +25,7 @@ import (
 	"time"
 
 	"github.com/apache/camel-k/pkg/client/cmd"
-	
+
 	_ "github.com/apache/camel-k/pkg/util/knative"
 	_ "github.com/apache/camel-k/pkg/util/openshift"
 	_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
diff --git a/pkg/metadata/dependencies.go b/pkg/metadata/dependencies.go
index 020b3b6..c2bcc83 100644
--- a/pkg/metadata/dependencies.go
+++ b/pkg/metadata/dependencies.go
@@ -27,7 +27,7 @@ import (
 )
 
 var (
-	additionalDependencies = map[string]string {
+	additionalDependencies = map[string]string{
 		".*JsonLibrary\\.Jackson.*": "camel:jackson",
 	}
 )
diff --git a/pkg/metadata/types.go b/pkg/metadata/types.go
index 74ac309..de10bb1 100644
--- a/pkg/metadata/types.go
+++ b/pkg/metadata/types.go
@@ -24,7 +24,7 @@ type IntegrationMetadata struct {
 	// All starting URIs of defined routes
 	FromURIs []string
 	// All end URIs of defined routes
-	ToURIs   []string
+	ToURIs []string
 	// All inferred dependencies required to run the integration
 	Dependencies []string
 	// The language in which the integration is written
diff --git a/pkg/metadata/uris.go b/pkg/metadata/uris.go
index e9c17ab..2caddc2 100644
--- a/pkg/metadata/uris.go
+++ b/pkg/metadata/uris.go
@@ -18,8 +18,9 @@ limitations under the License.
 package metadata
 
 import (
-	"github.com/apache/camel-k/pkg/apis/camel/v1alpha1"
 	"regexp"
+
+	"github.com/apache/camel-k/pkg/apis/camel/v1alpha1"
 )
 
 var (
@@ -97,4 +98,4 @@ func findAllDistinctStringSubmatch(data string, regexps ...*regexp.Regexp) []str
 		}
 	}
 	return candidates
-}
\ No newline at end of file
+}
diff --git a/pkg/trait/util.go b/pkg/trait/util.go
index c6194b8..bbbbb32 100644
--- a/pkg/trait/util.go
+++ b/pkg/trait/util.go
@@ -115,4 +115,3 @@ func CombineConfigurationAsSlice(configurationType string, context *v1alpha1.Int
 
 	return keys
 }
-
diff --git a/pkg/util/knative/uri.go b/pkg/util/knative/uri.go
index f263454..0617e19 100644
--- a/pkg/util/knative/uri.go
+++ b/pkg/util/knative/uri.go
@@ -40,4 +40,4 @@ func ExtractChannelName(uri string) string {
 		return match[1]
 	}
 	return ""
-}
\ No newline at end of file
+}