From 01a52ccb53bc805308bd085dc51ae4674dd5eb4a Mon Sep 17 00:00:00 2001 From: eladkal <45845474+eladkal@users.noreply.github.com> Date: Wed, 8 Jun 2022 15:31:18 +0300 Subject: [PATCH] Fix D202 issue (#24322) --- airflow/www/security.py | 1 - 1 file changed, 1 deletion(-) diff --git a/airflow/www/security.py b/airflow/www/security.py index de6b0d646e8c8..941b483803ca4 100644 --- a/airflow/www/security.py +++ b/airflow/www/security.py @@ -631,7 +631,6 @@ def _sync_dag_view_permissions(self, dag_id, access_control): :param access_control: a dict where each key is a rolename and each value is a set() of action names (e.g. {'can_read'}) """ - dag_resource_name = permissions.resource_name_for_dag(dag_id) def _get_or_create_dag_permission(action_name: str) -> Optional[Permission]: