mirror of
https://github.com/restic/restic.git
synced 2026-11-05 06:49:21 +00:00
internal/restic: Use errors.New when no formatting is needed
This commit is contained in:
1 parent
ba44666704
commit
feb790f497
1 file changed
+1
-1
@@ -145,7 +145,7 @@ func SaveTree(ctx context.Context, r BlobSaver, t *Tree) (ID, error) {
|
||||
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 {
|
||||
buf bytes.Buffer
|
||||
|
||||
Reference in new issue
Block a user