mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00: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))
|
errs = append(errs, fmt.Sprintf("[%s]: %v", k, v))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if len(errs) == 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return errors.New(strings.Join(errs, "\n"))
|
return errors.New(strings.Join(errs, "\n"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue