Skip to content

Commit

Permalink
Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Jan 29, 2024
1 parent ab599f0 commit 2fc9fe4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions energyplus_refactor_helper/source_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,9 @@ def get_new_file_text_group_based(self, group_visitor) -> str:
# TODO: Just create dummy RefactorBase-d test action classes that we use in all the unit tests
new_text = self.original_file_text
for fg in reversed(self.found_function_groups):
first_in_group = fg.function_calls[0]
last_in_group = fg.function_calls[-1]
new_text = new_text[:first_in_group.char_start_in_file] + group_visitor(fg) + new_text[last_in_group.char_end_in_file + 1:]
if '!msg.empty()' in new_text:
i = 1
first = fg.function_calls[0]
last = fg.function_calls[-1]
new_text = new_text[:first.char_start_in_file] + group_visitor(fg) + new_text[last.char_end_in_file + 1:]
return new_text

def write_new_text_to_file(self) -> None:
Expand Down

0 comments on commit 2fc9fe4

Please sign in to comment.