Merge pull request #2701 from guo-sj/fix_bugs_in_return_value

This commit is contained in:
Chris Lu 2022-02-23 19:23:37 -08:00 committed by GitHub
commit 6834df77a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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