mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-28 13:31:27 +08:00
return nil if no error
fix https://github.com/chrislusf/seaweedfs/issues/299
This commit is contained in:
parent
596f58507e
commit
e8193ec201
@ -107,6 +107,9 @@ func (dr DistributedOperationResult) Error() error {
|
||||
errs = append(errs, fmt.Sprintf("[%s]: %v", k, v))
|
||||
}
|
||||
}
|
||||
if len(errs) == 0 {
|
||||
return nil
|
||||
}
|
||||
return errors.New(strings.Join(errs, "\n"))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user