From f2922155de01b734e3e8b3f50be8f263ec13cacd Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 6 Mar 2026 18:38:44 +0800 Subject: *: Lint --- reachability/errors.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'reachability/errors.go') diff --git a/reachability/errors.go b/reachability/errors.go index 7d0d9a18..0f0c6047 100644 --- a/reachability/errors.go +++ b/reachability/errors.go @@ -7,24 +7,24 @@ import ( "codeberg.org/lindenii/furgit/objecttype" ) -// ErrObjectMissing indicates that a referenced object is absent from the store. -type ErrObjectMissing struct { +// ObjectMissingError indicates that a referenced object is absent from the store. +type ObjectMissingError struct { OID objectid.ObjectID } -func (e *ErrObjectMissing) Error() string { +func (e *ObjectMissingError) Error() string { return fmt.Sprintf("reachability: missing object %s", e.OID) } -// ErrObjectType indicates that a referenced object has a different type than +// ObjectTypeError indicates that a referenced object has a different type than // what traversal expected on that edge. -type ErrObjectType struct { +type ObjectTypeError struct { OID objectid.ObjectID Got objecttype.Type Want objecttype.Type } -func (e *ErrObjectType) Error() string { +func (e *ObjectTypeError) Error() string { gotName, gotOK := objecttype.Name(e.Got) if !gotOK { gotName = fmt.Sprintf("type(%d)", e.Got) -- cgit v1.3.1-10-gc9f91