Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 63236e2

Browse files
committed
fix docs mistake. Remove redundant check.
1 parent 5e117b3 commit 63236e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wavelink/player.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def inactive_timeout(self) -> int | None:
393393
:func:`on_wavelink_inactive_player` event or ``None`` to remove the timeout.
394394
395395
396-
.. wanring::
396+
.. warning::
397397
398398
Setting this to a value of ``0`` or below is the equivalent of setting this property to ``None``.
399399
@@ -415,7 +415,7 @@ def inactive_timeout(self, value: int | None) -> None:
415415
self._inactivity_cancel()
416416
return
417417

418-
if value and value < 10:
418+
if value < 10:
419419
logger.warn('Setting "inactive_timeout" below 10 seconds may result in unwanted side effects.')
420420

421421
self._inactivity_wait = value

0 commit comments

Comments
 (0)