aboutsummaryrefslogtreecommitdiff
path: root/reachability/helpers.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-27 09:08:40 +0000
committerGravatar Runxi Yu2026-03-27 09:08:40 +0000
commitd7e90798170265b37ea5f980f94ca310cfda3180 (patch)
tree89921ca5cb6dd5aaefa3c0ae72352381261cb1e6 /reachability/helpers.go
parentCONTRIBUTING: Fix submitting changes deadlines (diff)
signatureNo signature
object/store: Rename from object/storer
Diffstat (limited to 'reachability/helpers.go')
-rw-r--r--reachability/helpers.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/reachability/helpers.go b/reachability/helpers.go
index 8d9eea6a..d2459f36 100644
--- a/reachability/helpers.go
+++ b/reachability/helpers.go
@@ -6,7 +6,7 @@ import (
giterrors "codeberg.org/lindenii/furgit/errors"
objectid "codeberg.org/lindenii/furgit/object/id"
- objectstorer "codeberg.org/lindenii/furgit/object/storer"
+ objectstore "codeberg.org/lindenii/furgit/object/store"
objecttype "codeberg.org/lindenii/furgit/object/type"
)
@@ -39,7 +39,7 @@ func (walk *Walk) readHeaderType(id objectid.ObjectID) (objecttype.Type, error)
func (r *Reachability) readHeaderType(id objectid.ObjectID) (objecttype.Type, error) {
ty, _, err := r.store.ReadHeader(id)
if err != nil {
- if errors.Is(err, objectstorer.ErrObjectNotFound) {
+ if errors.Is(err, objectstore.ErrObjectNotFound) {
return objecttype.TypeInvalid, &giterrors.ObjectMissingError{OID: id}
}
@@ -61,7 +61,7 @@ func (walk *Walk) readBytesContent(id objectid.ObjectID) ([]byte, error) {
func (r *Reachability) readBytesContent(id objectid.ObjectID) ([]byte, error) {
_, content, err := r.store.ReadBytesContent(id)
if err != nil {
- if errors.Is(err, objectstorer.ErrObjectNotFound) {
+ if errors.Is(err, objectstore.ErrObjectNotFound) {
return nil, &giterrors.ObjectMissingError{OID: id}
}