mirror of
https://github.com/restic/restic.git
synced 2026-10-31 12:35:42 +00:00
restorer: drop redundant nil check
This commit is contained in:
1 parent
5caa33e7b9
commit
d4397926cc
1 file changed
+2
-4
@@ -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