Skip to content

Commit 6a73b4d

Browse files
committed
style: format code
1 parent b882525 commit 6a73b4d

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

openedx_authz/rest_api/v1/views.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,7 @@ def post(self, request: HttpRequest) -> Response:
111111
action = perm["action"]
112112
scope = perm["scope"]
113113
allowed = api.is_user_allowed(username, action, scope)
114-
response_data.append(
115-
{
116-
"action": action,
117-
"scope": scope,
118-
"allowed": allowed,
119-
}
120-
)
114+
response_data.append({"action": action, "scope": scope, "allowed": allowed})
121115
except ValueError as e:
122116
logger.error(f"Error validating permission for user {username}: {e}")
123117
return Response(data={"message": "Invalid scope format"}, status=status.HTTP_400_BAD_REQUEST)

0 commit comments

Comments
 (0)