Skip to content

Commit

Permalink
Improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
antonrh committed May 10, 2024
1 parent 71f5c76 commit d3e3304
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ninja/openapi/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,5 @@ def _csrf_needed(api: "NinjaAPI") -> bool:
if getattr(auth_callback, "csrf", False):
api._add_csrf = True # type: ignore[attr-defined]
return True
continue
api._add_csrf = False # type: ignore[attr-defined]
return False

0 comments on commit d3e3304

Please sign in to comment.