Address review comments

This commit is contained in:
Alexander Neumann
2021-01-30 18:49:30 +01:00
parent 200f09522d
commit aef3658a5f
3 changed files with 6 additions and 7 deletions

View File

@@ -420,12 +420,7 @@ func (r *Repository) saveIndex(ctx context.Context, indexes ...*Index) error {
debug.Log("Saved index %d as %v", i, sid)
}
err := r.idx.MergeFinalIndexes()
if err != nil {
return err
}
return nil
return r.idx.MergeFinalIndexes()
}
// SaveIndex saves all new indexes in the backend.