mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-07-20 10:04:08 +00:00
make staticcheck happy
This commit is contained in:
parent
ad7ab18fb7
commit
2b40ad9a12
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue