Browse Source

clean code

pull/640/head
13291271729 3 years ago
parent
commit
88ec1f42ee
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      parser/common/convert/message2operator.cc

+ 4
- 4
parser/common/convert/message2operator.cc View File

@@ -44,16 +44,16 @@ Status Message2Operator::ParseOperatorAttrs(const google::protobuf::Message *mes
for (auto &field : field_desc) {
GE_CHECK_NOTNULL(field);
if (field->is_repeated()) {
std::cout << "1111" << std::endl,
std::cout << "1111" << std::endl;
if (ParseRepeatedField(reflection, message, field, ops) != SUCCESS) {
std::cout << "[Parse][RepeatedField]" << field->name().c_str() << "failed." << std::endl,
std::cout << "[Parse][RepeatedField]" << field->name().c_str() << "failed." << std::endl;
GELOGE(FAILED, "[Parse][RepeatedField] %s failed.", field->name().c_str());
return FAILED;
}
} else {
std::cout << "2222" << std::endl,
std::cout << "2222" << std::endl;
if (ParseField(reflection, message, field, depth, ops) != SUCCESS) {
std::cout << "[Parse][Field]" << field->name().c_str() << "failed." << std::endl,
std::cout << "[Parse][Field]" << field->name().c_str() << "failed." << std::endl;
GELOGE(FAILED, "[Parse][Field] %s failed.", field->name().c_str());
return FAILED;
}


Loading…
Cancel
Save