You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2022/04/18 15:05:57 UTC

[camel-k] 02/02: formatted code using gofmt

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

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

commit 77c1dc1dac1e8f60df612d87db9f7574e502fae0
Author: gre8t <ak...@gmail.com>
AuthorDate: Mon Apr 18 13:18:31 2022 +0100

    formatted code using gofmt
---
 pkg/cmd/kit_create.go | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/pkg/cmd/kit_create.go b/pkg/cmd/kit_create.go
index 4519404d1..512c17dc4 100644
--- a/pkg/cmd/kit_create.go
+++ b/pkg/cmd/kit_create.go
@@ -146,20 +146,20 @@ func (command *kitCreateCommandOptions) run(cmd *cobra.Command, args []string) e
 		}
 	}
 
-if err := command.parseAndConvertToTrait(command.Properties, "camel.properties"); err != nil {
-	return err
-}
+	if err := command.parseAndConvertToTrait(command.Properties, "camel.properties"); err != nil {
+		return err
+	}
 
-if err := command.parseAndConvertToTrait(command.Configmaps, "mount.config"); err != nil {
-	return err
-}
+	if err := command.parseAndConvertToTrait(command.Configmaps, "mount.config"); err != nil {
+		return err
+	}
 
-if err := command.parseAndConvertToTrait(command.Secrets, "mount.config"); err != nil {
-	return err
-}
-if err := command.configureTraits(kit, command.Traits, catalog); err != nil {
-return err
-}
+	if err := command.parseAndConvertToTrait(command.Secrets, "mount.config"); err != nil {
+		return err
+	}
+	if err := command.configureTraits(kit, command.Traits, catalog); err != nil {
+		return err
+	}
 	existed := false
 	err = c.Create(command.Context, kit)
 	if err != nil && k8serrors.IsAlreadyExists(err) {
@@ -198,10 +198,10 @@ func (*kitCreateCommandOptions) configureTraits(kit *v1.IntegrationKit, options
 
 	return nil
 }
-func (command *kitCreateCommandOptions) parseAndConvertToTrait(params []string, traitParam string, ) error {
+func (command *kitCreateCommandOptions) parseAndConvertToTrait(params []string, traitParam string) error {
 	for _, param := range params {
 		command.Traits = append(command.Traits, convertToTrait(param, traitParam))
 	}
-	
+
 	return nil
-}
\ No newline at end of file
+}