mirror of
https://github.com/restic/restic.git
synced 2026-08-31 17:57:13 +00:00
Apply go fix ./... (#22037)
This commit is contained in:
@@ -3,6 +3,7 @@ package data
|
||||
import (
|
||||
"context"
|
||||
"runtime"
|
||||
"slices"
|
||||
"sync"
|
||||
|
||||
"github.com/restic/restic/internal/debug"
|
||||
@@ -158,8 +159,8 @@ func filterTrees(ctx context.Context, repo restic.Loader, trees restic.IDs, load
|
||||
|
||||
debug.Log("input job tree %v", j.ID)
|
||||
// iterate backwards over subtree to compensate backwards traversal order of nextTreeID selection
|
||||
for i := len(j.Subtrees) - 1; i >= 0; i-- {
|
||||
id := j.Subtrees[i]
|
||||
for _, id := range slices.Backward(j.Subtrees) {
|
||||
|
||||
if id.IsNull() {
|
||||
// We do not need to raise this error here, it is
|
||||
// checked when the tree is checked. Just make sure
|
||||
|
||||
Reference in New Issue
Block a user