Skip to content

Commit

Permalink
Removed duplicate line in webhook function
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-nightly[bot] authored Aug 15, 2023
1 parent cf38a33 commit a8180ef
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sweepai/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ async def webhook(raw_request: Request):
logger.info(f"Handling check suite for {request.repository.full_name}")
_, g = get_github_client(request.installation.id)
repo = g.get_repo(request.repository.full_name)
if request.check_run.pull_requests and issue.labels:
if request.check_run.pull_requests and issue.labels:
issue = repo.get_issue(request.check_run.pull_requests[0].number)
if not any(label.name == "sweep" for label in issue.labels):
Expand Down

0 comments on commit a8180ef

Please sign in to comment.