This is an automated email from the ASF dual-hosted git repository. tsato pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 4890d5235e9db2c557ff498ee92dbc5b84c73808 Author: Tadayoshi Sato <sato.tadayo...@gmail.com> AuthorDate: Thu Jul 14 17:04:17 2022 +0900 chore(lint): fix ifshort --- pkg/cmd/init.go | 3 +-- pkg/cmd/uninstall.go | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/init.go b/pkg/cmd/init.go index 52d32f65f..59347482e 100644 --- a/pkg/cmd/init.go +++ b/pkg/cmd/init.go @@ -66,8 +66,7 @@ func (o *initCmdOptions) validate(_ *cobra.Command, args []string) error { return fmt.Errorf("init expects exactly 1 argument, received %d", len(args)) } - fileName := args[0] - if o.extractLanguage(fileName) == nil { + if fileName := args[0]; o.extractLanguage(fileName) == nil { return fmt.Errorf("unsupported file type: %s", fileName) } diff --git a/pkg/cmd/uninstall.go b/pkg/cmd/uninstall.go index 029ca2717..7ff9279a6 100644 --- a/pkg/cmd/uninstall.go +++ b/pkg/cmd/uninstall.go @@ -127,6 +127,7 @@ func (o *uninstallCmdOptions) uninstall(cmd *cobra.Command, _ []string) error { return err } + // nolint: ifshort uninstallViaOLM := false if o.OlmEnabled { var err error