mirror of
https://github.com/kopia/kopia.git
synced 2026-04-26 09:00:15 -04:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user