Simplify redundant state check in CompilerStack::analyze()

This commit is contained in:
Kamil Śliwak 2023-06-14 06:30:25 +02:00
parent ee21b03e6c
commit e8d050a1ce

View File

@ -440,7 +440,7 @@ void CompilerStack::importASTs(std::map<std::string, Json::Value> const& _source
bool CompilerStack::analyze()
{
if (m_stackState != ParsedAndImported || m_stackState >= AnalysisPerformed)
if (m_stackState != ParsedAndImported)
solThrow(CompilerError, "Must call analyze only after parsing was performed.");
if (!resolveImports())