chore: upgrade golangci-lint to v1.46.0 (#1373)

This commit is contained in:
Colin Adler
2022-05-10 16:04:23 -05:00
committed by GitHub
parent e0a7aec228
commit 97a95f1377
18 changed files with 32 additions and 84 deletions
+2 -2
View File
@@ -266,7 +266,7 @@ func (api *api) putUserProfile(rw http.ResponseWriter, r *http.Request) {
})
}
httpapi.Write(rw, http.StatusConflict, httpapi.Response{
Message: fmt.Sprintf("user already exists"),
Message: "user already exists",
Errors: responseErrors,
})
return
@@ -391,7 +391,7 @@ func (api *api) putUserRoles(rw http.ResponseWriter, r *http.Request) {
apiKey := httpmw.APIKey(r)
if apiKey.UserID != user.ID {
httpapi.Write(rw, http.StatusUnauthorized, httpapi.Response{
Message: fmt.Sprintf("modifying other users is not supported at this time"),
Message: "modifying other users is not supported at this time",
})
return
}