mirror of https://github.com/dsoprea/go-exif.git
Bugfixes to previous report-card fixes
parent
9743a98845
commit
bd6037a0b8
|
@ -396,14 +396,15 @@ func (vc *ValueContext) Values() (values interface{}, err error) {
|
|||
} else if vc.tagType == TypeUndefined {
|
||||
log.Panicf("will not parse undefined-type value")
|
||||
|
||||
// Never called.
|
||||
return nil, nil
|
||||
} else {
|
||||
log.Panicf("value of type [%s] is unparseable", vc.tagType)
|
||||
// Never called.
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
log.Panicf("value of type [%s] is unparseable", vc.tagType)
|
||||
|
||||
// Never called.
|
||||
return nil, nil
|
||||
return values, nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -1499,7 +1499,7 @@ func FindIfdFromRootIfd(rootIfd *Ifd, ifdPath string) (ifd *Ifd, err error) {
|
|||
thisIfd = hit
|
||||
|
||||
// If we didn't find the sibling, add it.
|
||||
for i = 0; i < itii.Index; i++ {
|
||||
for i := 0; i < itii.Index; i++ {
|
||||
if thisIfd.NextIfd == nil {
|
||||
log.Panicf("IFD [%s] does not have (%d) occurrences/siblings", thisIfd.ifdIdentity.UnindexedString(), itii.Index)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue