mirror of
https://github.com/restic/restic.git
synced 2025-11-16 22:44:24 +00:00
errcheck: Add error checks
Most added checks are straight forward.
This commit is contained in:
@@ -201,7 +201,11 @@ func rebuildIndex(t *testing.T, repo restic.Repository) {
|
||||
}
|
||||
|
||||
func reloadIndex(t *testing.T, repo restic.Repository) {
|
||||
repo.SetIndex(repository.NewMasterIndex())
|
||||
err := repo.SetIndex(repository.NewMasterIndex())
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if err := repo.LoadIndex(context.TODO()); err != nil {
|
||||
t.Fatalf("error loading new index: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user