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
2025-03-30 14:08:55 +08:00
committed by GitHub
parent 8f32be2a00
commit e0d3fc0fa5

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)