Skip to content

Commit 741b6d8

Browse files
committed
Fixed: Non-repeated empty messages are always present on the wire, see #581
1 parent 948ca2e commit 741b6d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function encoder(mtype) {
8888
}
8989

9090
if (wireType === undefined)
91-
genEncodeType(gen, field, i, "m" + prop);
91+
genEncodeType(gen, field, i, "m" + prop, true);
9292
else gen
9393
("w.uint32(%d).%s(m%s)", (field.id << 3 | wireType) >>> 0, type, prop);
9494

0 commit comments

Comments
 (0)