mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 12:55:18 +00:00
internal/restic: Use errors.New when no formatting is needed
This commit is contained in:
parent
ba44666704
commit
feb790f497
@ -145,7 +145,7 @@ func SaveTree(ctx context.Context, r BlobSaver, t *Tree) (ID, error) {
|
|||||||
return id, err
|
return id, err
|
||||||
}
|
}
|
||||||
|
|
||||||
var ErrTreeNotOrdered = errors.Errorf("nodes are not ordered or duplicate")
|
var ErrTreeNotOrdered = errors.New("nodes are not ordered or duplicate")
|
||||||
|
|
||||||
type TreeJSONBuilder struct {
|
type TreeJSONBuilder struct {
|
||||||
buf bytes.Buffer
|
buf bytes.Buffer
|
||||||
|
Loading…
Reference in New Issue
Block a user