Skip to content

Commit d3508d9

Browse files
committed
review
1 parent babde69 commit d3508d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

api/analyzers/source_analyzer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ def first_pass(self, path: Path, ignore: list[str], graph: Graph) -> None:
8686
if any(path.rglob('*.py')):
8787
analyzers[".py"].add_dependencies(path, self.files)
8888

89-
files_len = len(list(path.rglob('*.*')))
90-
for i, file_path in enumerate(path.rglob('*.*')):
89+
files = list(path.rglob('*.*'))
90+
files_len = len(files)
91+
for i, file_path in enumerate(files):
9192
# Skip none supported files
9293
if file_path.suffix not in analyzers:
9394
logging.info(f"Skipping none supported file {file_path}")

0 commit comments

Comments
 (0)