diff --git a/lib/addoninfo.cpp b/lib/addoninfo.cpp index f0b15eac7a6d..5a64d73d3bb2 100644 --- a/lib/addoninfo.cpp +++ b/lib/addoninfo.cpp @@ -60,13 +60,9 @@ static std::string parseAddonInfo(AddonInfo& addoninfo, const picojson::value &j const auto it = obj.find("args"); if (it != obj.cend()) { const auto& val = it->second; - if (!val.is()) - return "Loading " + fileName + " failed. 'args' must be an array."; - for (const picojson::value &v : val.get()) { - if (!v.is()) - return "Loading " + fileName + " failed. 'args' entry is not a string."; - addoninfo.args += " " + v.get(); - } + if (!val.is()) + return "Loading " + fileName + " failed. 'args' entry is not a string."; + addoninfo.args = val.get(); } }