aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/json2proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/protobuf/json/json2proto.cpp')
-rw-r--r--library/cpp/protobuf/json/json2proto.cpp14
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;