Fix lint error

This commit is contained in:
Deluan 2024-05-17 21:46:59 -04:00
parent 4d28d534cc
commit 0a763b91d5
2 changed files with 3 additions and 5 deletions

View File

@ -26,6 +26,9 @@ linters:
- whitespace
linters-settings:
govet:
enable:
- nilness
gosec:
excludes:
- G501

View File

@ -78,12 +78,7 @@ func (api *Router) JukeboxControl(r *http.Request) (*responses.Subsonic, error)
if err != nil {
return nil, newError(responses.ErrorMissingParameter, "missing parameter index, err: %s", err)
}
offset := p.IntOr("offset", 0)
if err != nil {
offset = 0
}
return createResponse(pb.Skip(ctx, index, offset))
case ActionAdd:
ids, _ := p.Strings("id")