1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-07 02:00:30 +00:00

Update to golangci-lint and fix linting errors discovered by the updated version. (#602)

This commit is contained in:
Chad Roberts
2025-02-18 15:18:36 -05:00
committed by GitHub
parent 2d7ba46c7d
commit 489e557d5f
3 changed files with 5 additions and 5 deletions

View File

@@ -298,7 +298,7 @@ func Body(req *http.Request) (map[string]interface{}, error) {
return valuesToBody(req.MultipartForm.Value), nil
}
if req.PostForm != nil && len(req.PostForm) > 0 {
if len(req.PostForm) > 0 {
return valuesToBody(map[string][]string(req.Form)), nil
}