Removed a redundant else clause.

This commit is contained in:
a3d4 2020-04-08 23:40:29 +02:00
parent 7a9e024e90
commit 3ef510bc86

View File

@ -1430,8 +1430,7 @@ bool TypeChecker::visit(TupleExpression const& _tuple)
{ {
if (!components[i]) if (!components[i])
m_errorReporter.fatalTypeError(_tuple.location(), "Tuple component cannot be empty."); m_errorReporter.fatalTypeError(_tuple.location(), "Tuple component cannot be empty.");
else if (components[i])
{
components[i]->accept(*this); components[i]->accept(*this);
types.push_back(type(*components[i])); types.push_back(type(*components[i]));
@ -1463,9 +1462,6 @@ bool TypeChecker::visit(TupleExpression const& _tuple)
if (!components[i]->annotation().isPure) if (!components[i]->annotation().isPure)
isPure = false; isPure = false;
} }
else
types.push_back(TypePointer());
}
_tuple.annotation().isPure = isPure; _tuple.annotation().isPure = isPure;
if (_tuple.isInlineArray()) if (_tuple.isInlineArray())
{ {