Skip to content

Commit 4473430

Browse files
KRRT7claude[bot]
andauthored
Update codeflash/discovery/functions_to_optimize.py
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
1 parent d950bb1 commit 4473430

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

codeflash/discovery/functions_to_optimize.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ def get_files_for_language(
202202
ignore_dirs: set[str] = set()
203203
ignore_files: set[Path] = set()
204204
for p in ignore_paths:
205+
p = Path(p) if not isinstance(p, Path) else p
206+
if p.is_file():
205207
if p.is_file():
206208
ignore_files.add(p)
207209
else:

0 commit comments

Comments
 (0)