mirror of
https://github.com/restic/restic.git
synced 2025-08-13 19:56:42 +00:00
go fmt
This commit is contained in:
@@ -218,7 +218,7 @@ func (be *b2Backend) Load(ctx context.Context, h restic.Handle, length int, offs
|
||||
}
|
||||
|
||||
// Save stores data in the backend at the handle.
|
||||
func (be *b2Backend) Save(ctx context.Context, h restic.Handle, rd io.Reader) (error) {
|
||||
func (be *b2Backend) Save(ctx context.Context, h restic.Handle, rd io.Reader) error {
|
||||
ctx, cancel := context.WithCancel(ctx)
|
||||
defer cancel()
|
||||
|
||||
|
@@ -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) (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