Skip to content

Commit e488f89

Browse files
pre-commit-ci[bot]dopry
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5f94095 commit e488f89

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

oauth2_provider/oauth2_validators.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,7 @@ def invalidate_authorization_code(self, client_id, code, request, *args, **kwarg
322322
323323
:raises: InvalidGrantError if the grant does not exist.
324324
"""
325-
deleted_grant_count = Grant.objects.filter(
326-
code=code, application=request.client
327-
).delete()
325+
deleted_grant_count = Grant.objects.filter(code=code, application=request.client).delete()
328326
if not deleted_grant_count:
329327
raise errors.InvalidGrantError(request=request)
330328

0 commit comments

Comments
 (0)