make staticcheck happy

This commit is contained in:
Hunter Kehoe 2025-01-25 21:47:11 -07:00
parent ad7ab18fb7
commit 2b40ad9a12

View file

@ -49,7 +49,7 @@ func (s *Server) handleUsersAdd(w http.ResponseWriter, r *http.Request, v *visit
if err != nil && !errors.Is(err, user.ErrUserNotFound) {
return err
} else if u != nil {
if req.Force == true {
if req.Force {
if u.IsAdmin() {
return errHTTPForbidden
}