diff options
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/repository.go b/repository.go index 5f5527e..cc76107 100644 --- a/repository.go +++ b/repository.go @@ -345,6 +345,10 @@ func (r *Repository) Ref(name core.ReferenceName, resolved bool) (*core.Referenc // Refs returns a map with all the References func (r *Repository) Refs() core.ReferenceIter { - i, _ := r.s.ReferenceStorage().Iter() + i, err := r.s.ReferenceStorage().Iter() + if err != nil { + panic(err) + } + return i } |