Merge pull request #37 from moul/dev/vgheri/issue-34

Helper isFieldMessage doesn't check for label repeated anymore
This commit is contained in:
Manfred Touron 2016-12-29 18:20:26 +01:00 committed by GitHub
commit 83f2bd1514

View File

@ -85,8 +85,7 @@ func getMessageType(f *descriptor.FileDescriptorProto, name string) *descriptor.
} }
func isFieldMessage(f *descriptor.FieldDescriptorProto) bool { func isFieldMessage(f *descriptor.FieldDescriptorProto) bool {
if f.Type != nil && *f.Type == descriptor.FieldDescriptorProto_TYPE_MESSAGE && if f.Type != nil && *f.Type == descriptor.FieldDescriptorProto_TYPE_MESSAGE {
f.Label != nil && *f.Label != descriptor.FieldDescriptorProto_LABEL_REPEATED {
return true return true
} }