Skip to content

Commit

Permalink
Remove extra import
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-codecov committed Jun 2, 2023
1 parent 3cb9992 commit fcf4b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/torngit/github.py
Original file line number Diff line number Diff line change
@@ -665,7 +665,6 @@ async def set_commit_status(
async def get_commit_statuses(self, commit, token=None):
token = self.get_token_by_type_if_none(token, TokenType.status)
page = 0
statuses = []
cache_key = f"commit_status_{commit}"
if self._use_cache:
redis_service = self.get_redis_service()
@@ -679,6 +678,7 @@ async def get_commit_statuses(self, commit, token=None):
),
)
return Status(statuses)
statuses = []
async with self.get_client() as client:
while True:
page += 1

0 comments on commit fcf4b29

Please sign in to comment.