method already has a condition to retrieve immediateGenericType for a message

This condition was meant to be removed as part of #543

Resolves #624
This commit is contained in:
ncheema
2020-12-21 15:26:30 -08:00
committed by Oleg Zhurakousky
parent d0a0da24bc
commit 9bbb86be2d
3 changed files with 12 additions and 8 deletions

View File

@@ -91,9 +91,7 @@ public final class FunctionTypeUtils {
if (isPublisher(type) || isMessage(type)) {
type = getImmediateGenericType(type, 0);
}
if (isMessage(type)) {
type = getImmediateGenericType(type, 0);
}
return TypeResolver.reify(type instanceof GenericArrayType ? type : TypeResolver.reify(type));
}