aboutsummaryrefslogtreecommitdiff
path: root/reachability/ancestor.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 18:38:44 +0800
committerGravatar Runxi Yu2026-03-06 18:58:30 +0800
commitf2922155de01b734e3e8b3f50be8f263ec13cacd (patch)
tree6dcfcf5689e63eea09314dce543e1de26cab89fe /reachability/ancestor.go
parentinternal/compress: Format (diff)
signatureNo signature
*: Lint v0.1.68
Diffstat (limited to 'reachability/ancestor.go')
-rw-r--r--reachability/ancestor.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/reachability/ancestor.go b/reachability/ancestor.go
index 98a2c080..211aed01 100644
--- a/reachability/ancestor.go
+++ b/reachability/ancestor.go
@@ -57,7 +57,7 @@ func (r *Reachability) isAncestorGraph(ancestor, descendant objectid.ObjectID) (
ancestorPos, err := r.graph.Lookup(ancestor)
if err != nil {
- var notFound *commitgraphread.ErrNotFound
+ var notFound *commitgraphread.NotFoundError
if errors.As(err, &notFound) {
return false, false, nil
}
@@ -67,7 +67,7 @@ func (r *Reachability) isAncestorGraph(ancestor, descendant objectid.ObjectID) (
descendantPos, err := r.graph.Lookup(descendant)
if err != nil {
- var notFound *commitgraphread.ErrNotFound
+ var notFound *commitgraphread.NotFoundError
if errors.As(err, &notFound) {
return false, false, nil
}