Skip to content

Commit

Permalink
Fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
f2reninj5 committed Jun 22, 2024
1 parent 00b075f commit 7796264
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/routes/users/user_handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,12 @@ class UserHandlers {
* Handles an authenticated admin DELETE request to /users/:id.
* Deletes the resource.
*
* @param request
* @param _request
* @param response
* @param next
* @param _next
*/
@requireUserIsAdmin
async deleteUserAsAdmin(request: Request, response: Response, next: NextFunction): Promise<void> {
async deleteUserAsAdmin(_request: Request, response: Response, _next: NextFunction): Promise<void> {
const { user_id } = response.locals
if (typeof user_id !== "number") throw new Error("Parsed `user_id` not found.")

Expand Down

0 comments on commit 7796264

Please sign in to comment.