Skip to content

Commit

Permalink
style: add braces
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Mar 26, 2024
1 parent 6eea7b4 commit 5ee900d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,10 @@ object PlayerHelper {

fun shouldPlayNextVideo(isPlaylist: Boolean = false): Boolean {
// if there is no next video, it obviously should not be played
if (PlayingQueue.getNext() == null)
if (PlayingQueue.getNext() == null) {
return false
}

return autoPlayEnabled || (
isPlaylist && PreferenceHelper.getBoolean(
PreferenceKeys.AUTOPLAY_PLAYLISTS,
Expand Down

0 comments on commit 5ee900d

Please sign in to comment.