diff options
author | JP Sugarbroad <jpsugar@google.com> | 2017-07-12 18:05:57 -0700 |
---|---|---|
committer | JP Sugarbroad <jpsugar@google.com> | 2017-07-12 18:08:02 -0700 |
commit | 51005a2762c9c87914ee0fe2e152402482ce6bd7 (patch) | |
tree | 4746f0d9dac33a2a253fc66a891609c4786f338a | |
parent | df946d7d1c4551b3c8e87183012e3a48efbbfe76 (diff) | |
download | go-git-51005a2762c9c87914ee0fe2e152402482ce6bd7.tar.gz |
git: remove ErrObjectNotFound in favor of plumbing.ErrObjectNotFound
-rw-r--r-- | repository.go | 5 |
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 } |