forked from TrueCloudLab/frostfs-api-go
[#107] protogen: Fix oneof JSON marshaling
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
4a00ef946f
commit
937a53683a
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