mirror of
https://github.com/restic/restic.git
synced 2025-10-09 15:30:24 +00:00
Remove redundant if ...; err != nil; return pattern
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user