mirror of
https://github.com/restic/restic.git
synced 2026-10-30 03:55:42 +00:00
Apply go fix ./... (#22037)
This commit is contained in:
1 parent
28d802df8c
commit
b593ba305b
6 files changed
+19
-15
No files matched your search
@@ -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