aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/util/schema_proto2_to_proto3_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/util/schema_proto2_to_proto3_util.h')
-rw-r--r--benchmarks/util/schema_proto2_to_proto3_util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmarks/util/schema_proto2_to_proto3_util.h b/benchmarks/util/schema_proto2_to_proto3_util.h
index 8cbcbc40..0079f6f1 100644
--- a/benchmarks/util/schema_proto2_to_proto3_util.h
+++ b/benchmarks/util/schema_proto2_to_proto3_util.h
@@ -164,8 +164,7 @@ class FieldScrubber {
}
private:
static bool ShouldClearLabel(const FieldDescriptorProto *field) {
- return field->label() == FieldDescriptorProto::LABEL_OPTIONAL ||
- field->label() == FieldDescriptorProto::LABEL_REQUIRED;
+ return field->label() == FieldDescriptorProto::LABEL_REQUIRED;
}
static void ScrubMessage(DescriptorProto *message_type) {