Skip to content

Commit

Permalink
refactor: remove unnecessary checks since covered already by the setters
Browse files Browse the repository at this point in the history
  • Loading branch information
ferferga authored Jun 12, 2023
1 parent e540643 commit f4d07b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/store/playbackManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> => {
Expand Down

0 comments on commit f4d07b9

Please sign in to comment.