From 22c8a871fd4b668005f1bb9ef77fb8b10dd5c135 Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Sat, 11 Jan 2025 10:57:31 +0000 Subject: [PATCH] fix: formatting and whitespaces --- src/webui/api/torrentscontroller.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index 503e7a66c..e4c388de4 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -251,10 +251,10 @@ namespace QJsonArray getAllTrackers(const BitTorrent::Torrent *const torrent, const bool includeSticky) { - QJsonArray trackerList; + QJsonArray trackerList; if (includeSticky) - trackerList << getStickyTrackers(torrent); + trackerList << getStickyTrackers(torrent); for (const BitTorrent::TrackerEntryStatus &tracker : asConst(torrent->trackers())) { @@ -365,14 +365,14 @@ void TorrentsController::infoAction() { if (!torrentFilter.match(torrent)) continue; - - QVariantMap serializedTorrent = serialize(*torrent); - if (includeTrackers) + QVariantMap serializedTorrent = serialize(*torrent); + + if (includeTrackers) serializedTorrent.insert(KEY_PROP_TRACKERS, getAllTrackers(torrent, false)); - torrentList.append(serializedTorrent); - } + torrentList.append(serializedTorrent); + } if (torrentList.isEmpty()) {