Remove empty assertion messages in a fews places

This commit is contained in:
Kamil Śliwak
2022-06-01 20:37:48 +02:00
parent 539e139555
commit e19e6ad806
3 changed files with 9 additions and 10 deletions
+4 -5
View File
@@ -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();
}