diff --git a/cmd/neofs-adm/internal/modules/root.go b/cmd/neofs-adm/internal/modules/root.go index 5c2cde6747..eb7c814a6e 100644 --- a/cmd/neofs-adm/internal/modules/root.go +++ b/cmd/neofs-adm/internal/modules/root.go @@ -50,8 +50,8 @@ func Execute() error { } func entryPoint(cmd *cobra.Command, args []string) error { - printVersion, err := cmd.Flags().GetBool("version") - if err == nil && printVersion { + printVersion, _ := cmd.Flags().GetBool("version") + if printVersion { cmd.Print(misc.BuildInfo("NeoFS Adm")) return nil } diff --git a/cmd/neofs-lens/root.go b/cmd/neofs-lens/root.go index 47784423e7..0a0716e9dd 100644 --- a/cmd/neofs-lens/root.go +++ b/cmd/neofs-lens/root.go @@ -19,8 +19,8 @@ var command = &cobra.Command{ } func entryPoint(cmd *cobra.Command, _ []string) error { - printVersion, err := cmd.Flags().GetBool("version") - if err == nil && printVersion { + printVersion, _ := cmd.Flags().GetBool("version") + if printVersion { cmd.Print(misc.BuildInfo("NeoFS Lens")) return nil