Skip to content

Commit

Permalink
Short circuit to avoid calling getpass.getuser when not needed (as it…
Browse files Browse the repository at this point in the history
…'s unavailable on Windows without USERNAME).
  • Loading branch information
jaraco committed Sep 27, 2022
1 parent a7e698e commit 0f73af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jaraco/develop/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ def find_secrets(file):


def username():
return os.environ.get('GITHUB_USERNAME', getpass.getuser())
return os.environ.get('GITHUB_USERNAME') or getpass.getuser()

0 comments on commit 0f73af3

Please sign in to comment.