Remove redundant if ...; err != nil; return pattern
This commit is contained in:
parent
6ed73ed408
commit
319087c056
3 changed files with 3 additions and 14 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue