mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Don't use 'else' after return/break
This commit is contained in:
parent
78ab0e4ba9
commit
8a3f942385
15 changed files with 75 additions and 83 deletions
|
@ -59,12 +59,12 @@ TrackerEntry::Status TrackerEntry::status() const
|
|||
// true when the tracker hasn't been tried yet.
|
||||
if (m_nativeEntry.verified && m_nativeEntry.is_working())
|
||||
return Working;
|
||||
else if ((m_nativeEntry.fails == 0) && m_nativeEntry.updating)
|
||||
if ((m_nativeEntry.fails == 0) && m_nativeEntry.updating)
|
||||
return Updating;
|
||||
else if (m_nativeEntry.fails == 0)
|
||||
if (m_nativeEntry.fails == 0)
|
||||
return NotContacted;
|
||||
else
|
||||
return NotWorking;
|
||||
|
||||
return NotWorking;
|
||||
}
|
||||
|
||||
void TrackerEntry::setTier(const int value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue