mirror of
https://github.com/restic/restic.git
synced 2026-07-05 23:05:08 +00:00
restorer: drop redundant nil check
This commit is contained in:
@@ -632,10 +632,8 @@ func (res *Restorer) VerifyFiles(ctx context.Context, dst string, countRestoredF
|
||||
work = make(chan mustCheck, 2*nVerifyWorkers)
|
||||
)
|
||||
|
||||
if p != nil {
|
||||
p.SetMax(countRestoredFiles)
|
||||
defer p.Done()
|
||||
}
|
||||
p.SetMax(countRestoredFiles)
|
||||
defer p.Done()
|
||||
|
||||
g, ctx := errgroup.WithContext(ctx)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user