Skip to content

Commit

Permalink
Address comment for default syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-traverse committed Jul 26, 2024
1 parent 6204b2d commit 31f85e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/targets/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ function syntaxForType(type) {
}
}

return (syntax === "proto3") ? "proto3" : "proto2";
return (syntax !== null) ? syntax : "proto2";
}

function isOptional(field, syntax) {
Expand Down

0 comments on commit 31f85e9

Please sign in to comment.