Util: Fix return Value when an error has occurred

This commit is contained in:
Riyyi
2022-06-28 16:24:13 +02:00
parent fdeba07fd4
commit 95e0ddf49a
+2 -2
View File
@@ -34,14 +34,14 @@ Value Job::fire()
lexer.analyze();
if (!m_success) {
return { nullptr };
return nullptr;
}
Parser parser(this);
Value value = parser.parse();
if (!m_success) {
return { nullptr };
return nullptr;
}
return value;