Skip to content

Commit

Permalink
fix review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Oct 18, 2022
1 parent 578b4dc commit b667330
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/updater/ocupdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ bool OCUpdater::updateSucceeded() const

void OCUpdater::slotVersionInfoArrived()
{
qCInfo(lcUpdater()) << "received a reply";
qCDebug(lcUpdater) << "received a reply";
_timeoutWatchdog->stop();
auto *reply = qobject_cast<QNetworkReply *>(sender());
reply->deleteLater();
Expand Down Expand Up @@ -360,14 +360,14 @@ void NSISUpdater::versionInfoArrived(const UpdateInfo &info)
qCInfo(lcUpdater) << "No version information available at the moment";
setDownloadState(UpToDate);
} else {
qint64 currentVer = Helper::currentVersionToInt();
qint64 remoteVer = Helper::stringVersionToInt(info.version());
const auto currentVer = Helper::currentVersionToInt();
const auto remoteVer = Helper::stringVersionToInt(info.version());

if (info.version().isEmpty() || currentVer >= remoteVer) {
qCInfo(lcUpdater) << "Client is on latest version!";
setDownloadState(UpToDate);
} else {
QString url = info.downloadUrl();
const auto url = info.downloadUrl();
if (url.isEmpty()) {
showNoUrlDialog(info);
} else {
Expand Down

0 comments on commit b667330

Please sign in to comment.