mirror of https://github.com/databricks/cli.git
fixes
This commit is contained in:
parent
a05f0c0176
commit
e1c607bcfd
|
@ -41,9 +41,8 @@ func newMappingWithSize(size int) Mapping {
|
||||||
func newMappingFromGoMap(vin map[string]Value) Mapping {
|
func newMappingFromGoMap(vin map[string]Value) Mapping {
|
||||||
m := newMappingWithSize(len(vin))
|
m := newMappingWithSize(len(vin))
|
||||||
for k, v := range vin {
|
for k, v := range vin {
|
||||||
if err := m.Set(V(k), v); err != nil {
|
// QQQ log error or panic?
|
||||||
panic(err)
|
_ = m.Set(V(k), v)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return m
|
return m
|
||||||
}
|
}
|
||||||
|
@ -146,8 +145,7 @@ func (m Mapping) Clone() Mapping {
|
||||||
// Merge merges the key-value pairs from another Mapping into the current Mapping.
|
// Merge merges the key-value pairs from another Mapping into the current Mapping.
|
||||||
func (m *Mapping) Merge(n Mapping) {
|
func (m *Mapping) Merge(n Mapping) {
|
||||||
for _, p := range n.pairs {
|
for _, p := range n.pairs {
|
||||||
if err := m.Set(p.Key, p.Value); err != nil {
|
// QQQ log error or panic?
|
||||||
panic(err)
|
_ = m.Set(p.Key, p.Value)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue