From 1343dc1ef9ed1c4075e3077dcc91efee022e6f3d Mon Sep 17 00:00:00 2001 From: Camila Date: Mon, 11 Sep 2023 19:45:09 +0200 Subject: [PATCH] Add {} for single line if statements. Signed-off-by: Camila --- src/libsync/owncloudpropagator.cpp | 3 ++- src/libsync/owncloudpropagator.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libsync/owncloudpropagator.cpp b/src/libsync/owncloudpropagator.cpp index b150c7bb82403..5c63865497aff 100644 --- a/src/libsync/owncloudpropagator.cpp +++ b/src/libsync/owncloudpropagator.cpp @@ -1259,8 +1259,9 @@ void PropagatorCompositeJob::finalize() { // The propagator will do parallel scheduling and this could be posted // multiple times on the event loop, ignore the duplicate calls. - if (_state == Finished) + if (_state == Finished) { return; + } _state = Finished; emit finished(_hasError == SyncFileItem::NoStatus ? SyncFileItem::Success : _hasError); diff --git a/src/libsync/owncloudpropagator.h b/src/libsync/owncloudpropagator.h index e837641a49bda..017e6ebefb6a0 100644 --- a/src/libsync/owncloudpropagator.h +++ b/src/libsync/owncloudpropagator.h @@ -633,8 +633,9 @@ private slots: /** Emit the finished signal and make sure it is only emitted once */ void emitFinished(OCC::SyncFileItem::Status status) { - if (!_finishedEmited) + if (!_finishedEmited) { emit finished(status == SyncFileItem::Success); + } _abortRequested = false; _finishedEmited = true; }