mirror of
https://github.com/restic/restic.git
synced 2026-10-12 21:17:12 +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:
1 parent
8d37b723ca
commit
bcdebfb84e
8 files changed
+12
-11
No files matched your search
@@ -118,7 +118,7 @@ func (b *Local) IsNotExist(err error) bool {
|
||||
}
|
||||
|
||||
// Save stores data in the backend at the handle.
|
||||
func (b *Local) Save(ctx context.Context, h restic.Handle, rd io.Reader) (err error) {
|
||||
func (b *Local) Save(ctx context.Context, h restic.Handle, rd io.Reader) (error) {
|
||||
debug.Log("Save %v", h)
|
||||
if err := h.Valid(); err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user