Browse Source

Util: Fix return Value when an error has occurred

master
Riyyi 2 years ago
parent
commit
95e0ddf49a
  1. 4
      src/util/json/job.cpp

4
src/util/json/job.cpp

@ -34,14 +34,14 @@ Value Job::fire()
lexer.analyze(); lexer.analyze();
if (!m_success) { if (!m_success) {
return { nullptr }; return nullptr;
} }
Parser parser(this); Parser parser(this);
Value value = parser.parse(); Value value = parser.parse();
if (!m_success) { if (!m_success) {
return { nullptr }; return nullptr;
} }
return value; return value;

Loading…
Cancel
Save