Skip to content

Commit

Permalink
Merge pull request RedHatInsights#1058 from petracihalova/not-used-code
Browse files Browse the repository at this point in the history
refactor: removed redundant initialization of variable res_list
  • Loading branch information
petracihalova authored Mar 11, 2024
2 parents 7812a93 + a612bea commit b812fe6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion rbac/rbac/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ def _get_access_for_user(username, tenant): # pylint: disable=too-many-locals,t
for access_item in access_list: # pylint: disable=too-many-nested-blocks
resource_type = access_item.permission.resource_type
operation = access_item.permission.verb
res_list = []
if operation == "*":
operation = "write"
res_list = ["*"]
Expand Down

0 comments on commit b812fe6

Please sign in to comment.