mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-19 15:23:36 +00:00
chore: upgrade golangci-lint to 2.11 and fix lint issues
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
1 parent
f102036dc6
commit
3cd5d16b0a
7 files changed
+13
-6
No files matched your search
@@ -247,7 +247,7 @@ func uploadPlaylistImage(pls playlists.Playlists) http.HandlerFunc {
|
||||
p := req.Params(r)
|
||||
playlistId, _ := p.String(":id")
|
||||
|
||||
if err := r.ParseMultipartForm(maxImageSize); err != nil {
|
||||
if err := r.ParseMultipartForm(maxImageSize); err != nil { //nolint:gosec // size is limited by maxImageSize parameter
|
||||
log.Error(ctx, "Error parsing multipart form", err)
|
||||
http.Error(w, "file too large or invalid form", http.StatusBadRequest)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user