Skip to content

Commit

Permalink
style: use C-style null check
Browse files Browse the repository at this point in the history
Co-authored-by: Bnyro <82752168+Bnyro@users.noreply.github.com>
  • Loading branch information
FineFindus and Bnyro committed Mar 28, 2024
1 parent 5ee900d commit dc9fd55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ 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.hasNext()) {
return false
}

Expand Down

0 comments on commit dc9fd55

Please sign in to comment.