Skip to content

Commit

Permalink
Remove unnecessary length check
Browse files Browse the repository at this point in the history
  • Loading branch information
FasterSpeeding authored Apr 7, 2024
1 parent ef7746c commit 6c90b72
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ def _poll(webhook_url: str, tracker_path: pathlib.Path, api_url: str, params: di
last_update = _now()
tracker_path.write_text(last_update)

if len(data) > 0:
logging.info("No new commits, going to sleep")
return last_update

# new commits.
data.sort(key=lambda ref: dateutil.parser.parse(ref["commit"]["committer"]["date"]))

Expand Down

0 comments on commit 6c90b72

Please sign in to comment.