From df620b8c89ecb78d0066b5f52f32005f8a64a282 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Tue, 22 Jun 2021 02:26:30 +0200 Subject: [PATCH] cmd/root: Style fix Fallout from 8bc0018eaa6e901f942d14d221270b8d5b1e1859 https://github.com/containers/toolbox/pull/797 --- src/cmd/root.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cmd/root.go b/src/cmd/root.go index 4014f1b..a390fc2 100644 --- a/src/cmd/root.go +++ b/src/cmd/root.go @@ -95,8 +95,6 @@ func init() { } func preRun(cmd *cobra.Command, args []string) error { - var toolboxPath string - cmd.Root().SilenceUsage = true if err := setUpLoggers(); err != nil { @@ -127,7 +125,7 @@ func preRun(cmd *cobra.Command, args []string) error { } } - toolboxPath = os.Getenv("TOOLBOX_PATH") + toolboxPath := os.Getenv("TOOLBOX_PATH") if toolboxPath == "" { if utils.IsInsideContainer() {