diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-04-28 21:05:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-28 21:05:23 -0700 |
| commit | d71a1fd07770d45f334d7776ab791d317b94f133 (patch) | |
| tree | 4a501801aac89a831fe79914017ad8fc24f29d1e | |
| parent | 4e97b6146aca2477c8854f5b4711e952c0299f64 (diff) | |
| parent | 1a5de362571ff944e5599faee710b4a2ed9f1e9c (diff) | |
| download | seaweedfs-d71a1fd07770d45f334d7776ab791d317b94f133.tar.xz seaweedfs-d71a1fd07770d45f334d7776ab791d317b94f133.zip | |
Merge pull request #2986 from guo-sj/fix_return_value
fix return value
| -rw-r--r-- | weed/shell/command_fs_configure.go | 2 | ||||
| -rw-r--r-- | weed/shell/command_volume_vacuum.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_fs_configure.go b/weed/shell/command_fs_configure.go index 068e83a5b..73bb8e5c6 100644 --- a/weed/shell/command_fs_configure.go +++ b/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) diff --git a/weed/shell/command_volume_vacuum.go b/weed/shell/command_volume_vacuum.go index fc454c9ff..37b8aa030 100644 --- a/weed/shell/command_volume_vacuum.go +++ b/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 { |
