Minor. Remove redundant if

'inType' var is guaranteed to be not-null
This commit is contained in:
Denis Zharkov
2016-11-14 11:54:10 +03:00
parent 96fa04569a
commit 77c524de33
@@ -926,13 +926,8 @@ public class DescriptorResolver {
else {
type = typeResolver.resolveType(scopeWithTypeParameters, typeReference, trace, true);
KotlinType inType = propertyDescriptor.getType();
if (inType != null) {
if (!TypeUtils.equalTypes(type, inType)) {
trace.report(WRONG_SETTER_PARAMETER_TYPE.on(typeReference, inType, type));
}
}
else {
// TODO : the same check may be needed later???
if (!TypeUtils.equalTypes(type, inType)) {
trace.report(WRONG_SETTER_PARAMETER_TYPE.on(typeReference, inType, type));
}
}