return nil if no need to do anything

This commit is contained in:
Chris Lu 2020-09-07 16:03:05 -07:00
parent 64a621bcc8
commit d1b816212f

View file

@ -97,7 +97,7 @@ func (c *commandVolumeFixReplication) Do(args []string, commandEnv *CommandEnv,
}
if len(underReplicatedVolumeIds) == 0 {
return fmt.Errorf("no under replicated volumes")
return nil
}
if len(allLocations) == 0 {