fix (helper): fix goTypeWithPackage enum case
This commit is contained in:
		
				
					committed by
					
						 Pierre Roullon
						Pierre Roullon
					
				
			
			
				
	
			
			
			
						parent
						
							19fd9d7959
						
					
				
				
					commit
					ee845f3ed6
				
			| @@ -170,7 +170,7 @@ func isFieldRepeated(f *descriptor.FieldDescriptorProto) bool { | |||||||
|  |  | ||||||
| func goTypeWithPackage(f *descriptor.FieldDescriptorProto) string { | func goTypeWithPackage(f *descriptor.FieldDescriptorProto) string { | ||||||
| 	pkg := "" | 	pkg := "" | ||||||
| 	if *f.Type == descriptor.FieldDescriptorProto_TYPE_MESSAGE { | 	if *f.Type == descriptor.FieldDescriptorProto_TYPE_MESSAGE || *f.Type == descriptor.FieldDescriptorProto_TYPE_ENUM { | ||||||
| 		pkg = getPackageTypeName(*f.TypeName) | 		pkg = getPackageTypeName(*f.TypeName) | ||||||
| 	} | 	} | ||||||
| 	return goType(pkg, f) | 	return goType(pkg, f) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user