diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-03-02 16:02:42 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-03-23 11:57:55 -0600 |
commit | b8185f8e741bd81e0d6f6416e46e11f6f7570995 (patch) | |
tree | 623581e503f056267091ef94f0c9c7f4d30924ff /lib/btrfsutil/walk.go | |
parent | 6ebccb12a4234e6202afb4aa362aa97d125e089e (diff) |
btrfstree: Fuss with the TreeWalk API
Diffstat (limited to 'lib/btrfsutil/walk.go')
-rw-r--r-- | lib/btrfsutil/walk.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/btrfsutil/walk.go b/lib/btrfsutil/walk.go index bbdf992..b05218c 100644 --- a/lib/btrfsutil/walk.go +++ b/lib/btrfsutil/walk.go @@ -61,7 +61,7 @@ func WalkAllTrees(ctx context.Context, fs btrfstree.TreeOperator, cbs WalkAllTre }, } origItem := cbs.Item - cbs.Item = func(path btrfstree.Path, item btrfstree.Item) error { + cbs.Item = func(path btrfstree.Path, item btrfstree.Item) { if item.Key.ItemType == btrfsitem.ROOT_ITEM_KEY { trees = append(trees, struct { Name string @@ -73,9 +73,8 @@ func WalkAllTrees(ctx context.Context, fs btrfstree.TreeOperator, cbs WalkAllTre }) } if origItem != nil { - return origItem(path, item) + origItem(path, item) } - return nil } for i := 0; i < len(trees); i++ { |