Merge pull request #4 from msabramo/fix-test-failures

Fix test failures
This commit is contained in:
Markus Ritberger 2018-01-25 16:51:16 +01:00 committed by GitHub
commit e428b86c25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -558,6 +558,9 @@ func handlePointer(attribute interface{}, args []string, fieldType reflect.Type,
case map[string]interface{}: case map[string]interface{}:
var err error var err error
concreteVal, err = handleStruct(attribute, args, fieldType, fieldValue) concreteVal, err = handleStruct(attribute, args, fieldType, fieldValue)
if err != nil {
return reflect.Value{}, ErrUnsupportedPtrType(reflect.ValueOf(attribute), fieldType, structField)
}
return concreteVal.Elem(), err return concreteVal.Elem(), err
default: default:
return reflect.Value{}, ErrUnsupportedPtrType(reflect.ValueOf(attribute), fieldType, structField) return reflect.Value{}, ErrUnsupportedPtrType(reflect.ValueOf(attribute), fieldType, structField)