get rid of no-op defer

This commit is contained in:
Drew Weymouth
2023-06-19 19:27:14 -07:00
parent a324177fef
commit 91d1cc5ba3
-2
View File
@@ -304,11 +304,9 @@ func (p *PlaybackManager) SetNextLoopMode() error {
return err return err
} }
defer func() {
for _, cb := range p.onLoopModeChange { for _, cb := range p.onLoopModeChange {
cb(p.player.GetLoopMode().String()) cb(p.player.GetLoopMode().String())
} }
}()
return nil return nil
} }