diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /library/cpp/protobuf/json/json2proto.cpp | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/protobuf/json/json2proto.cpp')
-rw-r--r-- | library/cpp/protobuf/json/json2proto.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/protobuf/json/json2proto.cpp b/library/cpp/protobuf/json/json2proto.cpp index 66a9ef115f..640c10f5a5 100644 --- a/library/cpp/protobuf/json/json2proto.cpp +++ b/library/cpp/protobuf/json/json2proto.cpp @@ -42,12 +42,12 @@ static TString GetFieldName(const google::protobuf::FieldDescriptor& field, if (config.UseJsonName) { Y_ASSERT(!field.json_name().empty()); - TString name = field.json_name(); - if (!field.has_json_name() && !name.empty()) { - // FIXME: https://st.yandex-team.ru/CONTRIB-139 - name[0] = AsciiToLower(name[0]); - } - return name; + TString name = field.json_name(); + if (!field.has_json_name() && !name.empty()) { + // FIXME: https://st.yandex-team.ru/CONTRIB-139 + name[0] = AsciiToLower(name[0]); + } + return name; } TString name = field.name(); @@ -61,7 +61,7 @@ static TString GetFieldName(const google::protobuf::FieldDescriptor& field, name.to_upper(); break; case NProtobufJson::TJson2ProtoConfig::FieldNameCamelCase: - if (!name.empty()) { + if (!name.empty()) { name[0] = AsciiToLower(name[0]); } break; |