mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Removed a redundant else clause.
This commit is contained in:
parent
7a9e024e90
commit
3ef510bc86
@ -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())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user