Skip to content

Commit

Permalink
Merge pull request #720 from takuyagt/fix_header_cleanser
Browse files Browse the repository at this point in the history
Fix 'IndexError: list index out of range' in header_cleanser
  • Loading branch information
Param-S authored Oct 21, 2024
2 parents c56f016 + 4c34038 commit ed97afe
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def check_empty_comment(code, ignore_lines):

if max_index <= len(code_list):
max_index = max_index + 2
max_index = min(max_index, len(code_list))

for index in range(min_index, max_index):
if all(
Expand Down

0 comments on commit ed97afe

Please sign in to comment.