Skip to content

Commit

Permalink
Fix for pydocstyle D202 (#11096)
Browse files Browse the repository at this point in the history
'issues' introduced in #10594
  • Loading branch information
XD-DENG authored Sep 22, 2020
1 parent 35c4398 commit a0374a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion airflow/api_connexion/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def check_authorization(
permissions: Optional[Sequence[Tuple[str, str]]] = None, dag_id: Optional[int] = None
) -> None:
"""Checks that the logged in user has the specified permissions."""

if not permissions:
return
appbuilder = current_app.appbuilder
Expand Down
1 change: 0 additions & 1 deletion airflow/www/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ def get_editable_dag_ids(self, user):
@provide_session
def get_accessible_dags(self, user_action, user, session=None):
"""Generic function to get readable or writable DAGs for authenticated user."""

if user.is_anonymous:
return set()

Expand Down

0 comments on commit a0374a5

Please sign in to comment.