mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 06:27:23 +08:00
return nil if no error
fix https://github.com/chrislusf/seaweedfs/issues/299
This commit is contained in:
@@ -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"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user