linting
This commit is contained in:
parent
fcb50f0c27
commit
6b659d9ef4
@ -152,7 +152,7 @@ func (cmp *Comparer) AggregatedIndexes() <-chan TreeIndexKey {
|
||||
func (cmp *Comparer) BuildCache() (errors []error) {
|
||||
for index := range cmp.NaturalIndexes() {
|
||||
pathError, _ := cmp.GetPathErrors(index)
|
||||
if pathError != nil {
|
||||
if len(pathError) > 0 {
|
||||
for _, path := range pathError {
|
||||
errors = append(errors, fmt.Errorf("path error at layer index %s: %s", index, path))
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ func Efficiency(trees []*FileTree) (float64, EfficiencySlice) {
|
||||
return nil
|
||||
}
|
||||
stackedTree, failedPaths, err := StackTreeRange(trees, 0, currentTree-1)
|
||||
if failedPaths != nil {
|
||||
if len(failedPaths) > 0 {
|
||||
for _, path := range failedPaths {
|
||||
logrus.Errorf(path.String())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user