From eea96f652d17d3acc3c6e878df699c7142200aaf Mon Sep 17 00:00:00 2001 From: George Armhold Date: Thu, 26 Oct 2017 16:22:10 -0400 Subject: [PATCH] go fmt --- internal/backend/b2/b2.go | 2 +- internal/backend/local/local.go | 2 +- internal/restic/node.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/backend/b2/b2.go b/internal/backend/b2/b2.go index 4bca95653..72a502eb8 100644 --- a/internal/backend/b2/b2.go +++ b/internal/backend/b2/b2.go @@ -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() diff --git a/internal/backend/local/local.go b/internal/backend/local/local.go index e5012771c..91a250e43 100644 --- a/internal/backend/local/local.go +++ b/internal/backend/local/local.go @@ -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 diff --git a/internal/restic/node.go b/internal/restic/node.go index f191b5131..0adf4a524 100644 --- a/internal/restic/node.go +++ b/internal/restic/node.go @@ -272,7 +272,7 @@ func (node Node) createFileAt(ctx context.Context, path string, repo Repository, return nil } -func (node Node) writeNodeContent(ctx context.Context, repo Repository, f *os.File) (error) { +func (node Node) writeNodeContent(ctx context.Context, repo Repository, f *os.File) error { var buf []byte for _, id := range node.Content { size, err := repo.LookupBlobSize(id, DataBlob)