Skip to content

Commit

Permalink
update oneof test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Jul 4, 2024
1 parent 1bd1770 commit c42633a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/fixtures/oneof.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function readEnvelopeField(tag, obj, pbf) {
}
export function writeEnvelope(obj, pbf) {
if (obj.id) pbf.writeVarintField(1, obj.id);
if (obj.int) pbf.writeVarintField(2, obj.int);
if (obj.float) pbf.writeFloatField(3, obj.float);
if (obj.string) pbf.writeStringField(4, obj.string);
if (obj.int != null) pbf.writeVarintField(2, obj.int);
if (obj.float != null) pbf.writeFloatField(3, obj.float);
if (obj.string != null) pbf.writeStringField(4, obj.string);
}

0 comments on commit c42633a

Please sign in to comment.