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 26, 2024
1 parent a0a5fb4 commit 844aef5
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 @@ -283,8 +283,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 844aef5

Please sign in to comment.