aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/proto2json_printer.cpp
diff options
context:
space:
mode:
authoryourmary <yourmary@yandex-team.ru>2022-02-10 16:50:35 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:35 +0300
commit6c28d571885436fe17efe87ca39884f80852bb8c (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/protobuf/json/proto2json_printer.cpp
parentca865f07201ed0ac6e9673b4d6eb2b3fd6d0af02 (diff)
downloadydb-6c28d571885436fe17efe87ca39884f80852bb8c.tar.gz
Restoring authorship annotation for <yourmary@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/protobuf/json/proto2json_printer.cpp')
-rw-r--r--library/cpp/protobuf/json/proto2json_printer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/protobuf/json/proto2json_printer.cpp b/library/cpp/protobuf/json/proto2json_printer.cpp
index ab407edeef..6123eab0f2 100644
--- a/library/cpp/protobuf/json/proto2json_printer.cpp
+++ b/library/cpp/protobuf/json/proto2json_printer.cpp
@@ -471,14 +471,14 @@ namespace NProtobufJson {
for (const FieldDescriptor* field : fields) {
Y_ASSERT(field);
if (field->is_extension()) {
- switch (GetConfig().ExtensionFieldNameMode) {
- case TProto2JsonConfig::ExtFldNameFull:
- PrintField(proto, *field, json, field->full_name());
- break;
- case TProto2JsonConfig::ExtFldNameShort:
- PrintField(proto, *field, json);
- break;
- }
+ switch (GetConfig().ExtensionFieldNameMode) {
+ case TProto2JsonConfig::ExtFldNameFull:
+ PrintField(proto, *field, json, field->full_name());
+ break;
+ case TProto2JsonConfig::ExtFldNameShort:
+ PrintField(proto, *field, json);
+ break;
+ }
}
}