Merge pull request #8641 from a3d4/refactor-redundant-else

Minor refactoring. Removed a redundant else clause
This commit is contained in:
chriseth 2020-04-09 11:59:58 +02:00 committed by GitHub
commit 605e176fcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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