fix bug in empty detection

This commit is contained in:
Arthur Lu 2022-08-24 23:11:05 +00:00
parent ad3e3ba0a6
commit 9bfc9cdc05

View File

@ -12,4 +12,4 @@ class music_queue:
else:
return self.elem.pop(0)
def has_next(self):
return len(self.elem) == 0
return len(self.elem) != 0