Skip to content

Commit b6e072c

Browse files
committed
Use Python's "enumerate()" function to simplify a "for" loop
1 parent ec3616f commit b6e072c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

seleniumbase/console_scripts/sb_caseplans.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,7 @@ def view_summary_of_existing_case_plans(root, tests):
225225
num_ready_cases = 0
226226
num_boilerplate = 0
227227
num_in_progress = 0
228-
case_index = -1
229-
for case_data in case_data_storage:
230-
case_index += 1
228+
for case_index, case_data in enumerate(case_data_storage):
231229
icon = "🔵"
232230
table_missing = False
233231
if "| 1 | Perform Action 1 | Verify Action 1 |" in case_data:

0 commit comments

Comments
 (0)