From 22d4ea9a4427fdab7aa5565fac8a6641d2194c0d Mon Sep 17 00:00:00 2001 From: Valerio Gheri Date: Thu, 29 Dec 2016 17:21:53 +0100 Subject: [PATCH] Close #34 --- helpers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helpers.go b/helpers.go index 6ec72e8..4eae222 100644 --- a/helpers.go +++ b/helpers.go @@ -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 }