mirror of
https://github.com/taigrr/yq
synced 2025-01-18 04:53:17 -08:00
fix tests
This commit is contained in:
committed by
Mike Farah
parent
a125495eec
commit
bb9cb0c60e
@@ -166,7 +166,9 @@ func (o orderedMap) MarshalJSON() ([]byte, error) {
|
||||
return nil, err
|
||||
}
|
||||
buf.WriteByte(':')
|
||||
enc.Encode(el.V)
|
||||
if err := enc.Encode(el.V); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if idx != len(o.kv)-1 {
|
||||
buf.WriteByte(',')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user