Skip to content

Commit 31f85e9

Browse files
Address comment for default syntax
1 parent 6204b2d commit 31f85e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/targets/static.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ function syntaxForType(type) {
368368
}
369369
}
370370

371-
return (syntax === "proto3") ? "proto3" : "proto2";
371+
return (syntax !== null) ? syntax : "proto2";
372372
}
373373

374374
function isOptional(field, syntax) {

0 commit comments

Comments
 (0)