Skip to content

Commit 3c1f1b3

Browse files
committed
make staticcheck happy
1 parent 4a483af commit 3c1f1b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server_admin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (s *Server) handleUsersAdd(w http.ResponseWriter, r *http.Request, v *visit
4949
if err != nil && !errors.Is(err, user.ErrUserNotFound) {
5050
return err
5151
} else if u != nil {
52-
if req.Force == true {
52+
if req.Force {
5353
if u.IsAdmin() {
5454
return errHTTPForbidden
5555
}

0 commit comments

Comments
 (0)