cmd/root: Style fix

Fallout from 8bc0018eaa

https://github.com/containers/toolbox/pull/797
This commit is contained in:
Debarshi Ray 2021-06-22 02:26:30 +02:00
parent fb411796bf
commit df620b8c89

View file

@ -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() {