Browse Source

fix return value

pull/2986/head
guosj 3 years ago
parent
commit
1a5de36257
  1. 2
      weed/shell/command_fs_configure.go
  2. 2
      weed/shell/command_volume_vacuum.go

2
weed/shell/command_fs_configure.go

@ -62,7 +62,7 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
isDelete := fsConfigureCommand.Bool("delete", false, "delete the configuration by locationPrefix")
apply := fsConfigureCommand.Bool("apply", false, "update and apply filer configuration")
if err = fsConfigureCommand.Parse(args); err != nil {
return err
return nil
}
fc, err := filer.ReadFilerConf(commandEnv.option.FilerAddress, commandEnv.option.GrpcDialOption, commandEnv.MasterClient)

2
weed/shell/command_volume_vacuum.go

@ -34,7 +34,7 @@ func (c *commandVacuum) Do(args []string, commandEnv *CommandEnv, writer io.Writ
collection := volumeVacuumCommand.String("collection", "", "vacuum this collection")
volumeId := volumeVacuumCommand.Uint("volumeId", 0, "the volume id")
if err = volumeVacuumCommand.Parse(args); err != nil {
return
return nil
}
if err = commandEnv.confirmIsLocked(args); err != nil {

Loading…
Cancel
Save