From 4dda857e8b4343188225d1193417e6c3d6ceea0d Mon Sep 17 00:00:00 2001 From: kajo24 <67791504+karjo24@users.noreply.github.com> Date: Tue, 12 Nov 2024 09:50:44 +0100 Subject: [PATCH] fixed playback speeds when user is nil (#1400) --- model/user.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/model/user.go b/model/user.go index 04be99a44..7cab0e14d 100755 --- a/model/user.go +++ b/model/user.go @@ -99,9 +99,6 @@ func (s PlaybackSpeedSettings) GetEnabled() (res []float32) { } func (u *User) GetEnabledPlaybackSpeeds() (res []float32) { - if u == nil { - return []float32{1} - } // Possibly, this could be collapsed into a single line, but readibility suffers. res = append(res, u.GetPlaybackSpeeds().GetEnabled()...) res = append(res, u.GetCustomSpeeds()...)