Skip to content

Commit

Permalink
Restore the indentation on the check, keeping the logic in the only p…
Browse files Browse the repository at this point in the history
…lace it's reachable (and limiting the diff).
  • Loading branch information
jaraco authored Oct 26, 2024
1 parent 2f3f4ec commit f33fcfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keyring/backends/Windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,6 @@ def get_credential(self, service, username):
if not res:
cred = self._get_password(service)
res = cred if username is None or username == cred["UserName"] else None
if not res:
return None
if not res:
return None
return SimpleCredential(res['UserName'], res.value)

0 comments on commit f33fcfb

Please sign in to comment.