Skip to content

Commit 747a0c5

Browse files
committed
chore: address copilot feedback.
django-oauth#1252 (review)
1 parent 3072793 commit 747a0c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

oauth2_provider/oauth2_validators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ def _load_application(self, client_id, request):
215215
client_id and store it in request.client
216216
"""
217217
if request.client:
218-
""" check for cached client, to save the db hit if this has alredy been loaded """
218+
# check for cached client, to save the db hit if this has already been loaded
219219
if not isinstance(request.client, Application):
220-
log.debug("request.client is not an Application, something else set request.client erroroneously, resetting request.client.")
220+
log.debug("request.client is not an Application, something else set request.client erroneously, resetting request.client.")
221221
request.client = None
222222
elif request.client.client_id != client_id:
223223
log.debug("request.client client_id does not match the given client_id, resetting request.client.")
@@ -229,7 +229,7 @@ def _load_application(self, client_id, request):
229229
log.debug("request.client is a valid Application, reusing it.")
230230
return request.client
231231
try:
232-
""" cache wasn't hit, load from db """
232+
# cache wasn't hit, load from db
233233
log.debug("cache not hit, Loading application from database for client_id %r", client_id)
234234
client = Application.objects.get(client_id=client_id)
235235
if not client.is_usable(request):

0 commit comments

Comments
 (0)