From 31f85e943c27612f9d1221e4751741622b6e3c00 Mon Sep 17 00:00:00 2001 From: Martin Traverse Date: Fri, 26 Jul 2024 15:07:33 +0100 Subject: [PATCH] Address comment for default syntax --- cli/targets/static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/targets/static.js b/cli/targets/static.js index 0e2775c87..0298eb32c 100644 --- a/cli/targets/static.js +++ b/cli/targets/static.js @@ -368,7 +368,7 @@ function syntaxForType(type) { } } - return (syntax === "proto3") ? "proto3" : "proto2"; + return (syntax !== null) ? syntax : "proto2"; } function isOptional(field, syntax) {