Minor. Simpler code.

This commit is contained in:
Evgeny Gerashchenko
2013-02-01 15:23:59 +04:00
parent 7b71c66fd6
commit c09c85e862
@@ -186,12 +186,14 @@ public class TypeTransformingVisitor extends JetVisitor<JetType, Void> {
throw new AlternativeSignatureMismatchException("Projection kind '%s' is redundant", throw new AlternativeSignatureMismatchException("Projection kind '%s' is redundant",
altProjectionKind, DescriptorUtils.getFQName(typeConstructor.getDeclarationDescriptor())); altProjectionKind, DescriptorUtils.getFQName(typeConstructor.getDeclarationDescriptor()));
} }
else {
altProjectionKind = projectionKind;
}
} }
else { else {
throw new AlternativeSignatureMismatchException("Projection kind '%s' is conflicting with variance of %s", throw new AlternativeSignatureMismatchException("Projection kind '%s' is conflicting with variance of %s",
altProjectionKind, DescriptorUtils.getFQName(typeConstructor.getDeclarationDescriptor())); altProjectionKind, DescriptorUtils.getFQName(typeConstructor.getDeclarationDescriptor()));
} }
altProjectionKind = projectionKind;
} }
} }
else { else {