aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/repository.go b/repository.go
index a60f3ef..17f0dff 100644
--- a/repository.go
+++ b/repository.go
@@ -22,7 +22,6 @@ import (
)
var (
- ErrObjectNotFound = errors.New("object not found")
ErrInvalidReference = errors.New("invalid reference, should be a tag or a branch")
ErrRepositoryNotExists = errors.New("repository not exists")
ErrRepositoryAlreadyExists = errors.New("repository already exists")
@@ -804,10 +803,6 @@ func (r *Repository) TagObjects() (*object.TagIter, error) {
func (r *Repository) Object(t plumbing.ObjectType, h plumbing.Hash) (object.Object, error) {
obj, err := r.Storer.EncodedObject(t, h)
if err != nil {
- if err == plumbing.ErrObjectNotFound {
- return nil, ErrObjectNotFound
- }
-
return nil, err
}