fix(general): use correct error in call to errors.Wrap (#4477)

use `twerr` instead of `err`, which is always `nil`
This commit is contained in:
alingse authored and GitHub committed 2025-03-29 23:08:55 -07:00
1 parent 8f32be2a00
commit e0d3fc0fa5
1 file changed
+1 -1
+1 -1
View File
@@ -51,7 +51,7 @@ func findInUseContentIDs(ctx context.Context, rep repo.Repository, used *bigmap.
},
})
if twerr != nil {
return errors.Wrap(err, "unable to create tree walker")
return errors.Wrap(twerr, "unable to create tree walker")
}
defer w.Close(ctx)