Remove redundant if ...; err != nil; return pattern

This commit is contained in:
Michael Eischer 2023-05-18 18:07:19 +02:00
parent 6ed73ed408
commit 319087c056
3 changed files with 3 additions and 14 deletions

View file

@ -306,10 +306,7 @@ func (be *b2Backend) List(ctx context.Context, t restic.FileType, fn func(restic
return err
}
}
if err := iter.Err(); err != nil {
return err
}
return nil
return iter.Err()
}
// Delete removes all restic keys in the bucket. It will not remove the bucket itself.