summaryrefslogtreecommitdiff
path: root/cmd/btrfs-rec/inspect/rebuildtrees/util.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-04-14 07:19:45 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2023-04-14 07:19:45 -0600
commitc2c6fa42233cd3911b81bb9449329816f645cec5 (patch)
treec8d3663a5d1d03f033a0c133983061bc2ef61418 /cmd/btrfs-rec/inspect/rebuildtrees/util.go
parent163e8a157ab812a8eafa3a1d2d2b8c0e45431559 (diff)
parent9a63a26b4e23a8977a9558b7e9a79792eb5b6d18 (diff)
Merge branch 'lukeshu/rebuilt-v2-pt1-naive'
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
+}