Skip to content

Commit f7eb088

Browse files
committed
get rid of enumerate since it's redundant
1 parent c554f42 commit f7eb088

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

apps/codecov-api/api/sentry/views.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,16 +296,12 @@ def test_analytics_eu(request, *args, **kwargs):
296296
"repo_id", "-timestamp"
297297
)
298298

299-
# Group test runs by repository
300299
test_runs_per_repository = {}
301300
for repo_id, repo_name in repo_id_to_name.items():
302301
test_runs_per_repository[repo_name] = []
303302

304-
# Serialize all test runs at once for efficiency
305303
serialized_test_runs = TestrunSerializer(test_runs, many=True).data
306-
307-
# Group serialized data by repository
308-
for i, test_run_data in enumerate(serialized_test_runs):
304+
for test_run_data in serialized_test_runs:
309305
repo_id = test_run_data["repo_id"]
310306
repo_name = repo_id_to_name.get(repo_id)
311307
if repo_name:

0 commit comments

Comments
 (0)