Skip to content

Commit

Permalink
merge loops, improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Apr 1, 2024
1 parent 965ca4b commit bd1178a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/src/cogs/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ async def share(
for github in list(github_accounts):
if github[0].github in contributors:
github_accounts.remove(github)
continue

# add everyone remaining to repo
for github in github_accounts:
# attempt to add to repo
try:
repo.add_to_collaborators(github[0].github, permission="maintain") # type: ignore
except UnknownObjectException:
Expand Down

0 comments on commit bd1178a

Please sign in to comment.