Skip to content

Commit

Permalink
Remove unnecessary length check (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
FasterSpeeding authored Apr 7, 2024
1 parent ef7746c commit b6c8225
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,8 @@ 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"]))

logging.info("Iterating across %s new commits", len(data))

for commit in data:
Expand Down

0 comments on commit b6c8225

Please sign in to comment.