Commit 03ff7dab authored by guofutan's avatar guofutan

fix code style in pb_to_json.cpp

parent 96435e03
...@@ -89,10 +89,10 @@ bool PbToJsonConverter::Convert(const google::protobuf::Message& message, Handle ...@@ -89,10 +89,10 @@ bool PbToJsonConverter::Convert(const google::protobuf::Message& message, Handle
_error = "Missing required field: " + field->full_name(); _error = "Missing required field: " + field->full_name();
return false; return false;
} }
// Whether dumps default fields
if(!_option.always_print_primitive_fields) if (!_option.always_print_primitive_fields) {
continue; continue;
}
} else if (field->is_repeated() } else if (field->is_repeated()
&& reflection->FieldSize(message, field) == 0 && reflection->FieldSize(message, field) == 0
&& !_option.jsonify_empty_array) { && !_option.jsonify_empty_array) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment