From 52af7894db1fc73377d355db6d02d56246c6acdd Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 8 May 2024 16:08:01 +0200 Subject: [PATCH] Minor: remove useless assignments. --- DownloadDCJsonFiles/update.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); }