restore: Fix linting error

This commit is contained in:
Michael Eischer 2021-09-19 14:14:35 +02:00
parent e62d4f622f
commit 921e328b56
1 changed files with 3 additions and 1 deletions

View File

@ -375,7 +375,9 @@ func (res *Restorer) verifyFile(target string, node *restic.Node, buf []byte) ([
if err != nil {
return buf, err
}
defer f.Close()
defer func() {
_ = f.Close()
}()
fi, err := f.Stat()
switch {