mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 22:33:34 -07:00
fix: formatting and whitespaces
This commit is contained in:
parent
af3a073fc0
commit
22c8a871fd
1 changed files with 7 additions and 7 deletions
|
@ -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()))
|
||||
{
|
||||
|
@ -366,13 +366,13 @@ void TorrentsController::infoAction()
|
|||
if (!torrentFilter.match(torrent))
|
||||
continue;
|
||||
|
||||
QVariantMap serializedTorrent = serialize(*torrent);
|
||||
QVariantMap serializedTorrent = serialize(*torrent);
|
||||
|
||||
if (includeTrackers)
|
||||
if (includeTrackers)
|
||||
serializedTorrent.insert(KEY_PROP_TRACKERS, getAllTrackers(torrent, false));
|
||||
|
||||
torrentList.append(serializedTorrent);
|
||||
}
|
||||
torrentList.append(serializedTorrent);
|
||||
}
|
||||
|
||||
if (torrentList.isEmpty())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue