From 95e0ddf49a943e64ccb463c79c14973ec5902516 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Tue, 28 Jun 2022 16:22:29 +0200 Subject: [PATCH] Util: Fix return Value when an error has occurred --- src/util/json/job.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/json/job.cpp b/src/util/json/job.cpp index 76024ce..f196f5f 100644 --- a/src/util/json/job.cpp +++ b/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;