protogen: Fix oneof JSON marshaling
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
ad24052ad9
commit
2bdcbe4d44
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue