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 /cmd/btrfs-rec/inspect_spewitems.go | |
parent | 6ebccb12a4234e6202afb4aa362aa97d125e089e (diff) |
btrfstree: Fuss with the TreeWalk API
Diffstat (limited to 'cmd/btrfs-rec/inspect_spewitems.go')
-rw-r--r-- | cmd/btrfs-rec/inspect_spewitems.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/btrfs-rec/inspect_spewitems.go b/cmd/btrfs-rec/inspect_spewitems.go index b83e989..c3a1e6b 100644 --- a/cmd/btrfs-rec/inspect_spewitems.go +++ b/cmd/btrfs-rec/inspect_spewitems.go @@ -34,17 +34,15 @@ func init() { dlog.Error(ctx, err) }, TreeWalkHandler: btrfstree.TreeWalkHandler{ - Item: func(path btrfstree.Path, item btrfstree.Item) error { + Item: func(path btrfstree.Path, item btrfstree.Item) { textui.Fprintf(os.Stdout, "%s = ", path) spew.Dump(item) _, _ = os.Stdout.WriteString("\n") - return nil }, - BadItem: func(path btrfstree.Path, item btrfstree.Item) error { + BadItem: func(path btrfstree.Path, item btrfstree.Item) { textui.Fprintf(os.Stdout, "%s = ", path) spew.Dump(item) _, _ = os.Stdout.WriteString("\n") - return nil }, }, }) |