Fix issues reported by semgrep

This commit is contained in:
Alexander Neumann
2020-12-11 09:41:59 +01:00
parent 7facc8ccc1
commit 36c5d39c2c
5 changed files with 6 additions and 26 deletions

View File

@@ -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 },
})