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:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user