mirror of https://github.com/databricks/cli.git
keep ignoring errors that were ignored before
This commit is contained in:
parent
e1c607bcfd
commit
cc7a46d545
|
@ -126,9 +126,8 @@ func fromTypedStruct(src reflect.Value, ref dyn.Value, options ...fromTypedOptio
|
||||||
|
|
||||||
// Either if the key was set in the reference or the field is not zero-valued, we include it.
|
// Either if the key was set in the reference or the field is not zero-valued, we include it.
|
||||||
if ok || nv.Kind() != dyn.KindNil {
|
if ok || nv.Kind() != dyn.KindNil {
|
||||||
if err := out.Set(refk, nv); err != nil {
|
// QQQ log error?
|
||||||
return dyn.InvalidValue, err
|
_ = out.Set(refk, nv)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -186,9 +185,8 @@ func fromTypedMap(src reflect.Value, ref dyn.Value) (dyn.Value, error) {
|
||||||
|
|
||||||
// Every entry is represented, even if it is a nil.
|
// Every entry is represented, even if it is a nil.
|
||||||
// Otherwise, a map with zero-valued structs would yield a nil as well.
|
// Otherwise, a map with zero-valued structs would yield a nil as well.
|
||||||
if err := out.Set(refk, nv); err != nil {
|
// QQQ log error?
|
||||||
return dyn.InvalidValue, err
|
_ = out.Set(refk, nv)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return dyn.V(out), nil
|
return dyn.V(out), nil
|
||||||
|
|
|
@ -70,9 +70,8 @@ func decodeValue(decoder *json.Decoder, o *Offset) (dyn.Value, error) {
|
||||||
return invalidValueWithLocation(decoder, o), err
|
return invalidValueWithLocation(decoder, o), err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := obj.Set(keyVal, val); err != nil {
|
// QQQ log this?
|
||||||
return invalidValueWithLocation(decoder, o), err
|
_ = obj.Set(keyVal, val)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Consume the closing '}'
|
// Consume the closing '}'
|
||||||
if _, err := decoder.Token(); err != nil {
|
if _, err := decoder.Token(); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue