Fix warning of unused variable.
authorCamila Ayres <hello@camilasan.com>
Mon, 24 Jun 2024 10:05:40 +0000 (12:05 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Mon, 1 Jul 2024 14:35:06 +0000 (16:35 +0200)
Signed-off-by: Camila Ayres <hello@camilasan.com>
src/libsync/abstractnetworkjob.cpp

index 8015f7bae59b79a46c34c2e2744355883530f395..f4f90a80e30dcabcc4635beadf285d7447b15aa2 100644 (file)
@@ -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();
     }