Skip to content

Commit

Permalink
consider-using-enumerate
Browse files Browse the repository at this point in the history
  • Loading branch information
cjx10 committed Apr 28, 2024
1 parent 02fb6f4 commit caf19de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiment/builder_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ def _compare_extracted_errors(self, build_log_errors: list[str],
"""
if len(build_log_errors) != len(err_log_errors):
return False
for i in range(len(build_log_errors)):
if build_log_errors[i] != err_log_errors[i]:
for i, build_log_error in enumerate(build_log_errors):
if err_log_errors[i] != build_log_error:
return False
return True

Expand Down

0 comments on commit caf19de

Please sign in to comment.