From e18e9d299130283ac2d4f202059e5710c67c05a4 Mon Sep 17 00:00:00 2001 From: Zaq? Wiedmann Date: Fri, 20 Sep 2019 11:59:31 -0700 Subject: [PATCH] removing quoting of u/int64 types --- jsonpb/jsonpb.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/jsonpb/jsonpb.go b/jsonpb/jsonpb.go index e8134ec8ba..35de8ed0ab 100644 --- a/jsonpb/jsonpb.go +++ b/jsonpb/jsonpb.go @@ -736,14 +736,7 @@ func (m *Marshaler) marshalValue(out *errWriter, prop *proto.Properties, v refle if err != nil { return err } - needToQuote := string(b[0]) != `"` && (v.Kind() == reflect.Int64 || v.Kind() == reflect.Uint64) - if needToQuote { - out.write(`"`) - } out.write(string(b)) - if needToQuote { - out.write(`"`) - } return out.err }