diff --git a/app/api/todos.py b/app/api/todos.py index 54596af..77bd0b4 100644 --- a/app/api/todos.py +++ b/app/api/todos.py @@ -84,5 +84,4 @@ def delete_todo( """ success = todo_crud.delete_todo(db, todo_id=todo_id, owner_id=current_user.id) if not success: - raise HTTPException(status_code=404, detail="Todo not found") - return None \ No newline at end of file + raise HTTPException(status_code=404, detail="Todo not found") \ No newline at end of file diff --git a/app/api/users.py b/app/api/users.py index 0ad8b84..5cfed7f 100644 --- a/app/api/users.py +++ b/app/api/users.py @@ -74,7 +74,7 @@ def delete_user_endpoint( user_id: int, db: Session = Depends(get_db), current_user: User = Depends(get_current_active_user), -) -> Any: +): """ Delete a user. """ @@ -87,5 +87,4 @@ def delete_user_endpoint( success = delete_user(db, user_id=user_id) if not success: - raise HTTPException(status_code=404, detail="User not found") - return None \ No newline at end of file + raise HTTPException(status_code=404, detail="User not found") \ No newline at end of file