Skip to content

Commit

Permalink
remove redundant is_map
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Aug 20, 2024
1 parent f963fe5 commit 084c87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/php/php_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ std::string DefaultForField(const FieldDescriptor* field) {
}

std::string DeprecatedConditionalForField(const FieldDescriptor* field) {
if (field->is_repeated() || field->is_map()) {
if (field->is_repeated()) {
return absl::StrCat("$this->", field->name(), "->count() !== 0");
}
if (field->real_containing_oneof() != nullptr) {
Expand Down

0 comments on commit 084c87d

Please sign in to comment.