From f4d07b993ffdbc611455e4eb3037d024068f4eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Mon, 12 Jun 2023 16:03:17 +0000 Subject: [PATCH] refactor: remove unnecessary checks since covered already by the setters --- frontend/src/store/playbackManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/store/playbackManager.ts b/frontend/src/store/playbackManager.ts index f94ca748bfc..4384c54d329 100644 --- a/frontend/src/store/playbackManager.ts +++ b/frontend/src/store/playbackManager.ts @@ -953,14 +953,14 @@ class PlaybackManagerStore { * Increase volume by 5 */ public volumeUp = (): void => { - this.currentVolume = Math.min(this.currentVolume + 5, 100); + this.currentVolume = this.currentVolume + 5; }; /** * Decrease volume by 5 */ public volumeDown = (): void => { - this.currentVolume = Math.max(this.currentVolume - 5, 0); + this.currentVolume = this.currentVolume - 5; }; public instantMixFromItem = async (itemId: string): Promise => {