mirror of
https://github.com/restic/restic.git
synced 2025-08-23 14:57:37 +00:00
errcheck: More error handling
This commit is contained in:
@@ -327,7 +327,12 @@ func (c *Checker) Structure(ctx context.Context, p *progress.Counter, errChan ch
|
||||
})
|
||||
}
|
||||
|
||||
wg.Wait()
|
||||
// the wait group should not return an error because no worker returns an
|
||||
// error, so panic if that has changed somehow.
|
||||
err := wg.Wait()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Checker) checkTree(id restic.ID, tree *restic.Tree) (errs []error) {
|
||||
|
Reference in New Issue
Block a user