Simplify redundant state check in CompilerStack::analyze()

This commit is contained in:
Kamil Śliwak
2023-08-21 17:50:41 +02:00
parent ee21b03e6c
commit e8d050a1ce
+1 -1
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())