diff --git a/DownloadDCJsonFiles/update.cpp b/DownloadDCJsonFiles/update.cpp index 939d3e4..ae68ccf 100644 --- a/DownloadDCJsonFiles/update.cpp +++ b/DownloadDCJsonFiles/update.cpp @@ -180,19 +180,16 @@ bool Update::doUpdate(QStringList const &filesToWorkOn) { } } else if (fToWorkOn.contains("DC2C_cash", Qt::CaseInsensitive) && fToWorkOn.endsWith(".json", Qt::CaseInsensitive)) { - res = true; if ((res = updateCashConf(fToWorkOn))) { qCritical() << QString("DOWNLOADED CASH TEMPLATE %1").arg(fToWorkOn); } } else if (fToWorkOn.contains("DC2C_conf", Qt::CaseInsensitive) && fToWorkOn.endsWith(".json", Qt::CaseInsensitive)) { - res = true; - if ((res= updateConfig(fToWorkOn))) { + if ((res = updateConfig(fToWorkOn))) { qCritical() << QString("DOWNLOADED CONFIG TEMPLATE %1").arg(fToWorkOn); } } else if (fToWorkOn.contains("DC2C_device", Qt::CaseInsensitive) && fToWorkOn.endsWith(".json", Qt::CaseInsensitive)) { - res = true; if ((res = updateDeviceConf(fToWorkOn))) { qCritical() << QString("DOWNLOADED DEVICE TEMPLATE %1").arg(fToWorkOn); }