Bugfixes to previous report-card fixes

dustin/master
Dustin Oprea 2020-06-12 01:58:17 -04:00
parent 9743a98845
commit bd6037a0b8
2 changed files with 6 additions and 5 deletions

View File

@ -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() {

View File

@ -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)
}