Skip to content

Commit 2dcda5a

Browse files
mkruskal-googlecopybara-github
authored andcommitted
Internal changes
PiperOrigin-RevId: 825654714
1 parent f764f12 commit 2dcda5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/google/protobuf/descriptor.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6588,9 +6588,9 @@ FileDescriptor* DescriptorBuilder::BuildFileImpl(
65886588
SuggestFieldNumbers(result, proto);
65896589
}
65906590

6591-
if (!unknown_option_dependencies.empty() && !options_to_interpret_.empty()) {
6592-
// If there are unknown option dependencies, we should report an error
6593-
// if there are any uninterpreted options.
6591+
if (!options_to_interpret_.empty()) {
6592+
// If there are options to interpret, report an error on any unknown option
6593+
// dependencies.
65946594
for (const std::string& name : unknown_option_dependencies) {
65956595
AddImportError(proto, name);
65966596
}

0 commit comments

Comments
 (0)