Tell IDE to shut up about an update without where of a single record
This commit is contained in:
parent
9f17f55547
commit
e56e08a68f
|
@ -108,6 +108,7 @@ func ProfileHandler() http.Handler {
|
|||
return
|
||||
}
|
||||
if ok := form.Validate(locale); ok {
|
||||
//goland:noinspection SqlWithoutWhere
|
||||
cookie := conn.MustGetText(r.Context(), "", "update user_profile set name = $1, email = $2, lang_tag = $3 returning build_cookie()", form.Name.Value, form.Email.Value, form.Language.Selected)
|
||||
setSessionCookie(w, cookie)
|
||||
if form.Password.Value != "" {
|
||||
|
|
Loading…
Reference in New Issue