mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-18 02:52:36 +03:00
Introduced engine.Scrobbler
Also refactored mocks into their original packages, to avoid cyclic references. Is there a better way to have mocks in GoLang tests?
This commit is contained in:
1 parent
4aa02e68e5
commit
b660a70688
16 files changed
+158
-47
No files matched your search
@@ -46,6 +46,9 @@ func (c *BaseAPIController) ParamInt(param string, def int) int {
|
||||
|
||||
func (c *BaseAPIController) ParamBool(param string, def bool) bool {
|
||||
value := def
|
||||
if c.Input().Get(param) == "" {
|
||||
return def
|
||||
}
|
||||
c.Ctx.Input.Bind(&value, param)
|
||||
return value
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user