Skip to content

Commit 3fa8857

Browse files
chore: Refactor stop_ids_for_agency.py to use truthy check for stop_ids.data
1 parent fbddf0a commit 3fa8857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/stop_ids_for_agency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def main_sync() -> None:
55
client = onebusaway.OnebusawaySDK(api_key="TEST")
66
agency_id = "40"
77
stop_ids = client.stop_ids_for_agency.list(agency_id)
8-
if stop_ids.data and stop_ids.data.list is not None:
8+
if stop_ids.data:
99
for stop_id in stop_ids.data.list:
1010
print(stop_id)
1111

0 commit comments

Comments
 (0)