From 26f3ab8d4b906edab175baab56db43f4eb8c5e9a Mon Sep 17 00:00:00 2001 From: guosj <515878133@qq.com> Date: Thu, 24 Feb 2022 09:04:38 +0800 Subject: [PATCH] fix a return bug in func (c *commandVacuum) Do --- weed/shell/command_volume_vacuum.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/shell/command_volume_vacuum.go b/weed/shell/command_volume_vacuum.go index a09bf5d56..61b1f06fa 100644 --- a/weed/shell/command_volume_vacuum.go +++ b/weed/shell/command_volume_vacuum.go @@ -32,7 +32,7 @@ func (c *commandVacuum) Do(args []string, commandEnv *CommandEnv, writer io.Writ volumeVacuumCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError) garbageThreshold := volumeVacuumCommand.Float64("garbageThreshold", 0.3, "vacuum when garbage is more than this limit") if err = volumeVacuumCommand.Parse(args); err != nil { - return nil + return } if err = commandEnv.confirmIsLocked(args); err != nil {