mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -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
|
@ -285,8 +285,8 @@ int Utils::Misc::friendlyUnitPrecision(SizeUnit unit)
|
|||
// friendlyUnit's number of digits after the decimal point
|
||||
if (unit == SizeUnit::Byte) return 0;
|
||||
if (unit <= SizeUnit::MebiByte) return 1;
|
||||
else if (unit == SizeUnit::GibiByte) return 2;
|
||||
else return 3;
|
||||
if (unit == SizeUnit::GibiByte) return 2;
|
||||
return 3;
|
||||
}
|
||||
|
||||
qlonglong Utils::Misc::sizeInBytes(qreal size, Utils::Misc::SizeUnit unit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue