playlist: return early from shufflePlaylist()
Remove one indent level by returning diretly after the check. This makes the function more readable.
This commit is contained in:
parent
00541f8ce9
commit
bd71d3ea78
@ -997,7 +997,9 @@ void shufflePlaylist(void)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
if (queue_length(&playlist.queue) > 1) {
|
||||
if (queue_length(&playlist.queue) <= 1)
|
||||
return;
|
||||
|
||||
if (playlist.playing) {
|
||||
if (playlist.queued >= 0)
|
||||
clearPlayerQueue();
|
||||
@ -1023,7 +1025,6 @@ void shufflePlaylist(void)
|
||||
queue_length(&playlist.queue));
|
||||
|
||||
incrPlaylistVersion();
|
||||
}
|
||||
}
|
||||
|
||||
enum playlist_result savePlaylist(const char *utf8file)
|
||||
|
Loading…
Reference in New Issue
Block a user