mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
Piano: Clean up code style with help from clang-tidy
Includes shadowed variables and if-else return.
This commit is contained in:
parent
401a21e4f4
commit
9f5f6b3868
4 changed files with 5 additions and 8 deletions
|
@ -74,6 +74,5 @@ int TrackManager::next_track_index() const
|
|||
auto next_track_index = m_current_track + 1;
|
||||
if (next_track_index >= m_tracks.size())
|
||||
return 0;
|
||||
else
|
||||
return next_track_index;
|
||||
return static_cast<int>(next_track_index);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue