Remove error handling.
@@ -156,11 +156,10 @@ func writeValue(buf *bytes.Buffer, val interface{}) {
default:
if m, ok := v.(json.Marshaler); ok {
if js, err := m.MarshalJSON(); nil == err {
- if _, err := buf.Write(js); nil == err {
+ buf.Write(js)
return
}
}
- }
jsonx.AppendString(buf, fmt.Sprintf("%#v", v))
}
}
