forked from TrueCloudLab/restic
go fmt
This commit is contained in:
parent
f5fa602482
commit
eea96f652d
3 changed files with 3 additions and 3 deletions
|
@ -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.
|
// 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)
|
ctx, cancel := context.WithCancel(ctx)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ func (b *Local) IsNotExist(err error) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save stores data in the backend at the handle.
|
// 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)
|
debug.Log("Save %v", h)
|
||||||
if err := h.Valid(); err != nil {
|
if err := h.Valid(); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -272,7 +272,7 @@ func (node Node) createFileAt(ctx context.Context, path string, repo Repository,
|
||||||
return nil
|
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
|
var buf []byte
|
||||||
for _, id := range node.Content {
|
for _, id := range node.Content {
|
||||||
size, err := repo.LookupBlobSize(id, DataBlob)
|
size, err := repo.LookupBlobSize(id, DataBlob)
|
||||||
|
|
Loading…
Reference in a new issue