fix tests

This commit is contained in:
Morgan Bazalgette
2020-10-09 08:38:42 +11:00
committed by Mike Farah
parent a125495eec
commit bb9cb0c60e
3 changed files with 27 additions and 23 deletions
+3 -1
View File
@@ -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(',')
}