Skip to content

Commit

Permalink
Simplify no_replace check
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin committed Jun 26, 2024
1 parent 966b8d5 commit 5456440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lavalink/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ async def play(self,
:class:`TypeError`
If wrong types were provided for ``no_replace``, ``volume`` or ``pause``.
"""
if isinstance(no_replace, bool) and no_replace and self.is_playing:
if no_replace is True and self.is_playing:
return

if track is not None and isinstance(track, dict):
Expand Down

0 comments on commit 5456440

Please sign in to comment.