diff --git a/util/protogen/internalgengo/json.go b/util/protogen/internalgengo/json.go index ad43fc8a..4ae24e78 100644 --- a/util/protogen/internalgengo/json.go +++ b/util/protogen/internalgengo/json.go @@ -159,8 +159,6 @@ func emitJSONMarshal(g *protogen.GeneratedFile, msg *protogen.Message) { g.P("case *", ff.GoIdent, ":") emitJSONFieldWrite(g, ff, "xx", i == 0) } - g.P("default:") - g.P(`out.RawString("null")`) g.P("}") continue }