Merge pull request #37 from moul/dev/vgheri/issue-34
Helper isFieldMessage doesn't check for label repeated anymore
This commit is contained in:
commit
83f2bd1514
@ -85,8 +85,7 @@ func getMessageType(f *descriptor.FileDescriptorProto, name string) *descriptor.
|
||||
}
|
||||
|
||||
func isFieldMessage(f *descriptor.FieldDescriptorProto) bool {
|
||||
if f.Type != nil && *f.Type == descriptor.FieldDescriptorProto_TYPE_MESSAGE &&
|
||||
f.Label != nil && *f.Label != descriptor.FieldDescriptorProto_LABEL_REPEATED {
|
||||
if f.Type != nil && *f.Type == descriptor.FieldDescriptorProto_TYPE_MESSAGE {
|
||||
return true
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user