fix: remove unnecessary condition
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
debc1659e1
commit
8aae652be1
@ -225,11 +225,10 @@ VersionFilePtr OneSixVersionFormat::versionFileFromJson(const QJsonDocument &doc
|
|||||||
{
|
{
|
||||||
QJsonObject agentObj = requireObject(agentVal);
|
QJsonObject agentObj = requireObject(agentVal);
|
||||||
auto lib = libraryFromJson(*out, agentObj, filename);
|
auto lib = libraryFromJson(*out, agentObj, filename);
|
||||||
|
|
||||||
QString arg = "";
|
QString arg = "";
|
||||||
if (agentObj.contains("argument"))
|
readString(agentObj, "argument", arg);
|
||||||
{
|
|
||||||
readString(agentObj, "argument", arg);
|
|
||||||
}
|
|
||||||
AgentPtr agent(new Agent(lib, arg));
|
AgentPtr agent(new Agent(lib, arg));
|
||||||
out->agents.append(agent);
|
out->agents.append(agent);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user