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 2023/03/31 09:52:09 UTC

[camel-k] 02/02: fix: lint correction

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

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

commit 03e9e35163a839e017aa03e434b5a7254c08f98a
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Thu Mar 30 12:48:52 2023 +0200

    fix: lint correction
---
 pkg/cmd/run.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/cmd/run.go b/pkg/cmd/run.go
index 674e5bc77..0d0dbd2c0 100644
--- a/pkg/cmd/run.go
+++ b/pkg/cmd/run.go
@@ -745,7 +745,7 @@ func convertToTrait(value, traitParameter string) string {
 }
 
 func (o *runCmdOptions) applyProperties(c client.Client, items []string, traitName string) error {
-	if items == nil || len(items) == 0 {
+	if len(items) == 0 {
 		return nil
 	}
 	props, err := o.mergePropertiesWithPrecedence(c, items)