Browse Source

Util: Fix return Value when an error has occurred

master
Riyyi 3 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();
if (!m_success) {
return { nullptr };
return nullptr;
}
Parser parser(this);
Value value = parser.parse();
if (!m_success) {
return { nullptr };
return nullptr;
}
return value;

Loading…
Cancel
Save