From 592ef1c813fbd5f82480e9f639d1ee6677bd592f Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Mon, 24 Jun 2024 12:05:40 +0200 Subject: [PATCH] Fix warning of unused variable. Signed-off-by: Camila Ayres --- src/libsync/abstractnetworkjob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }