fix: formatting and whitespaces

This commit is contained in:
ze0s 2025-01-11 10:57:31 +00:00
commit 22c8a871fd

View file

@ -251,10 +251,10 @@ namespace
QJsonArray getAllTrackers(const BitTorrent::Torrent *const torrent, const bool includeSticky) QJsonArray getAllTrackers(const BitTorrent::Torrent *const torrent, const bool includeSticky)
{ {
QJsonArray trackerList; QJsonArray trackerList;
if (includeSticky) if (includeSticky)
trackerList << getStickyTrackers(torrent); trackerList << getStickyTrackers(torrent);
for (const BitTorrent::TrackerEntryStatus &tracker : asConst(torrent->trackers())) for (const BitTorrent::TrackerEntryStatus &tracker : asConst(torrent->trackers()))
{ {
@ -366,13 +366,13 @@ void TorrentsController::infoAction()
if (!torrentFilter.match(torrent)) if (!torrentFilter.match(torrent))
continue; continue;
QVariantMap serializedTorrent = serialize(*torrent); QVariantMap serializedTorrent = serialize(*torrent);
if (includeTrackers) if (includeTrackers)
serializedTorrent.insert(KEY_PROP_TRACKERS, getAllTrackers(torrent, false)); serializedTorrent.insert(KEY_PROP_TRACKERS, getAllTrackers(torrent, false));
torrentList.append(serializedTorrent); torrentList.append(serializedTorrent);
} }
if (torrentList.isEmpty()) if (torrentList.isEmpty())
{ {