Skip to content

Commit

Permalink
removing quoting of u/int64 types
Browse files Browse the repository at this point in the history
  • Loading branch information
zaquestion committed Sep 20, 2019
1 parent 8a5ed79 commit e18e9d2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions jsonpb/jsonpb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e18e9d2

Please sign in to comment.