diff --git a/src/libsync/abstractnetworkjob.cpp b/src/libsync/abstractnetworkjob.cpp index 8015f7bae59b7..f4f90a80e30dc 100644 --- a/src/libsync/abstractnetworkjob.cpp +++ b/src/libsync/abstractnetworkjob.cpp @@ -238,7 +238,7 @@ void AbstractNetworkJob::slotFinished() _account->handleInvalidCredentials(); } - if (const auto discard = finished()) { + if (finished()) { qCDebug(lcNetworkJob) << "Network job" << metaObject()->className() << "finished for" << path(); deleteLater(); }