Skip to content

Commit 8248c8e

Browse files
typo
1 parent 6967fcb commit 8248c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ def reformat_code_and_helpers(
605605
new_code = sort_imports(new_code)
606606

607607
new_helper_code: dict[Path, str] = {}
608-
helper_functions_paths = {hf.source_code for hf in helper_functions}
608+
helper_functions_paths = {hf.file_path for hf in helper_functions}
609609
for module_abspath in helper_functions_paths:
610610
formatted_helper_code = format_code(self.args.formatter_cmds, module_abspath)
611611
if should_sort_imports:

0 commit comments

Comments
 (0)