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
_error = "Missing required field: " + field->full_name();
return false;
}
if(!_option.always_print_primitive_fields)
// Whether dumps default fields
if (!_option.always_print_primitive_fields) {
continue;
}
} else if (field->is_repeated()
&& reflection->FieldSize(message, field) == 0
&& !_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