Enable SIM114 ruff rule (#111125)

This commit is contained in:
Joost Lekkerkerker 2024-02-23 13:21:59 +01:00 committed by GitHub
parent 26fac184b4
commit 730d805876
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 135 additions and 160 deletions

View file

@ -267,10 +267,11 @@ class RMVDepartureData:
if not dest_found:
continue
elif self._lines and journey["number"] not in self._lines:
continue
elif journey["minutes"] < self._time_offset:
elif (
self._lines
and journey["number"] not in self._lines
or journey["minutes"] < self._time_offset
):
continue
for attr in ("direction", "departure_time", "product", "minutes"):