aboutsummaryrefslogtreecommitdiff
path: root/reachability/walk_verify.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/walk_verify.go
parentinternal/compress: Format (diff)
signatureNo signature
*: Lint v0.1.68
Diffstat (limited to 'reachability/walk_verify.go')
-rw-r--r--reachability/walk_verify.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/reachability/walk_verify.go b/reachability/walk_verify.go
index 46798f5a..82eb7566 100644
--- a/reachability/walk_verify.go
+++ b/reachability/walk_verify.go
@@ -13,7 +13,7 @@ func (walk *Walk) validateCommitObject(id objectid.ObjectID) error {
}
if ty != objecttype.TypeCommit {
- return &ErrObjectType{OID: id, Got: ty, Want: objecttype.TypeCommit}
+ return &ObjectTypeError{OID: id, Got: ty, Want: objecttype.TypeCommit}
}
content, err := walk.readBytesContent(id)