mirror of
https://github.com/restic/restic.git
synced 2025-12-03 21:21:47 +00:00
Fix issues reported by semgrep
This commit is contained in:
@@ -351,12 +351,7 @@ func (res *Restorer) VerifyFiles(ctx context.Context, dst string) (int, error) {
|
||||
offset += int64(length)
|
||||
}
|
||||
|
||||
err = file.Close()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return file.Close()
|
||||
},
|
||||
leaveDir: func(node *restic.Node, target, location string) error { return nil },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user