make staticcheck happy

This commit is contained in:
Hunter Kehoe 2025-01-25 21:47:11 -07:00
parent ad7ab18fb7
commit 2b40ad9a12
1 changed files with 1 additions and 1 deletions

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) { if err != nil && !errors.Is(err, user.ErrUserNotFound) {
return err return err
} else if u != nil { } else if u != nil {
if req.Force == true { if req.Force {
if u.IsAdmin() { if u.IsAdmin() {
return errHTTPForbidden return errHTTPForbidden
} }