Skip to content

Commit ece7252

Browse files
committed
WIP14
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent abbd56a commit ece7252

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/protocol-gen/generator/structure.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,12 @@ func (gen *Generator) renderStructuresOrType(g Printer, or *protocol.OrType, gen
704704
}
705705
sb.WriteString(`[`)
706706
for i, item := range or.Items {
707-
sb.WriteString(item.String())
707+
s := item.String()
708+
// TODO(zchee): ugly way
709+
if s == "LocationUriOnly" {
710+
s = "LocationURIOnly"
711+
}
712+
sb.WriteString(s)
708713
if i < len(or.Items)-1 {
709714
sb.WriteString(`,`)
710715
}

0 commit comments

Comments
 (0)