mirror of
https://github.com/restic/restic.git
synced 2026-06-07 09:29:43 +00:00
small cleanup:
- be explicit when discarding returned errors from .Close(), etc. - remove named return values from funcs when naked return not used - fix some "err" shadowing when redeclaration not needed
This commit is contained in:
@@ -67,7 +67,7 @@ func readDirNames(dirname string) ([]string, error) {
|
||||
return nil, errors.Wrap(err, "Open")
|
||||
}
|
||||
names, err := f.Readdirnames(-1)
|
||||
f.Close()
|
||||
_ = f.Close()
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "Readdirnames")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user