summaryrefslogtreecommitdiff
path: root/cmd/btrfs-rec/inspect/rebuildtrees/util.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-04-05 15:26:48 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2023-04-13 13:44:25 -0600
commit504c3695c7dae682504335a47e1f0f873f95ca30 (patch)
tree8b5f1c09f950bdafc57d520730d451fed363a93e /cmd/btrfs-rec/inspect/rebuildtrees/util.go
parent2bca1422067e0de0a5ec1b37c37f280e797a8072 (diff)
btrfsutil: RebuiltForrest.RebuiltTree(): Return errors
Diffstat (limited to 'cmd/btrfs-rec/inspect/rebuildtrees/util.go')
-rw-r--r--cmd/btrfs-rec/inspect/rebuildtrees/util.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/btrfs-rec/inspect/rebuildtrees/util.go b/cmd/btrfs-rec/inspect/rebuildtrees/util.go
index 842fb55..ee06394 100644
--- a/cmd/btrfs-rec/inspect/rebuildtrees/util.go
+++ b/cmd/btrfs-rec/inspect/rebuildtrees/util.go
@@ -19,3 +19,7 @@ func roundUp[T constraints.Integer](n, d T) T {
func discardOK[T any](val T, _ bool) T {
return val
}
+
+func discardErr[T any](val T, _ error) T {
+ return val
+}