From feb790f497aa9d5a1d8327f9a337e9d21da6a34a Mon Sep 17 00:00:00 2001 From: greatroar <61184462+greatroar@users.noreply.github.com> Date: Fri, 14 Oct 2022 14:07:20 +0200 Subject: [PATCH] internal/restic: Use errors.New when no formatting is needed --- internal/restic/tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/restic/tree.go b/internal/restic/tree.go index d62354b3a..373b36746 100644 --- a/internal/restic/tree.go +++ b/internal/restic/tree.go @@ -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