Remove possible double check of the same thing.

This commit is contained in:
sledgehammer999 2017-06-02 01:57:28 +03:00
parent d88f0f36e0
commit 4ab117d946
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -623,18 +623,13 @@ void SearchEngine::parseVersionInfo(const QByteArray &info)
if (!pluginName.endsWith(":")) continue;
pluginName.chop(1); // remove trailing ':'
bool ok;
qreal versionParseTest = list.last().toFloat(&ok);
qDebug("read line %s: %.2f", qPrintable(pluginName), versionParseTest);
if (!ok) continue;
PluginVersion version = PluginVersion::tryParse(list.last(), {});
if (version != PluginVersion()) {
dataCorrect = true;
if (isUpdateNeeded(pluginName, version)) {
qDebug("Plugin: %s is outdated", qPrintable(pluginName));
updateInfo[pluginName] = version;
}
if (version == PluginVersion()) continue;
dataCorrect = true;
if (isUpdateNeeded(pluginName, version)) {
qDebug("Plugin: %s is outdated", qPrintable(pluginName));
updateInfo[pluginName] = version;
}
}