mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove empty assertion messages in a fews places
This commit is contained in:
@@ -1637,7 +1637,7 @@ ASTPointer<Statement> Parser::parseSimpleStatement(ASTPointer<ASTString> const&
|
||||
return parseExpressionStatement(_docString, nodeFactory.createNode<TupleExpression>(components, false));
|
||||
}
|
||||
default:
|
||||
solAssert(false, "");
|
||||
solAssert(false);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1650,7 +1650,7 @@ ASTPointer<Statement> Parser::parseSimpleStatement(ASTPointer<ASTString> const&
|
||||
case LookAheadInfo::Expression:
|
||||
return parseExpressionStatement(_docString, expressionFromIndexAccessStructure(iap));
|
||||
default:
|
||||
solAssert(false, "");
|
||||
solAssert(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1661,9 +1661,8 @@ ASTPointer<Statement> Parser::parseSimpleStatement(ASTPointer<ASTString> const&
|
||||
bool Parser::IndexAccessedPath::empty() const
|
||||
{
|
||||
if (!indices.empty())
|
||||
{
|
||||
solAssert(!path.empty(), "");
|
||||
}
|
||||
solAssert(!path.empty());
|
||||
|
||||
return path.empty() && indices.empty();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user