diff options
author | Yilun Chong <yilunchong@google.com> | 2018-06-04 10:16:40 -0700 |
---|---|---|
committer | Yilun Chong <yilunchong@google.com> | 2018-06-04 10:16:40 -0700 |
commit | 61dac6d592fa3e384f77d914b67eb22c5d26104a (patch) | |
tree | 1e53638dc50ac8945437995ac637c66efef30b78 /benchmarks/util/schema_proto2_to_proto3_util.h | |
parent | 193af9f4c1ebfeec4c9322fc4bbb2a513267d345 (diff) |
Fix
Diffstat (limited to 'benchmarks/util/schema_proto2_to_proto3_util.h')
-rw-r--r-- | benchmarks/util/schema_proto2_to_proto3_util.h | 3 |
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) { |