refactor(subsonic): don't make getMusicFolder a method of ctrl

This commit is contained in:
sentriz
2022-11-02 22:21:19 +00:00
parent 6e6404af73
commit 131e56b3e6
4 changed files with 29 additions and 29 deletions

View File

@@ -117,14 +117,3 @@ func (c *Controller) HR(h handlerSubsonicRaw) http.Handler {
}
})
}
func (c *Controller) getMusicFolder(p params.Params) string {
idx, err := p.GetInt("musicFolderId")
if err != nil {
return ""
}
if idx < 0 || idx > len(c.MusicPaths) {
return ""
}
return c.MusicPaths[idx]
}