Skip to content

Commit d0e76dc

Browse files
committed
removing extra lines
1 parent 33815bf commit d0e76dc

File tree

1 file changed

+0
-5
lines changed
  • supporting-blog-content/github-assistant

1 file changed

+0
-5
lines changed

supporting-blog-content/github-assistant/index.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,15 @@ def clone_repository(owner, repo, branch, base_path="/tmp"):
4747
"Branch is not provided and GITHUB_BRANCH environment variable is not set."
4848
)
4949

50-
5150
local_repo_path = os.path.join(base_path, owner, repo)
5251
clone_url = f"https://github.com/{owner}/{repo}.git"
5352

54-
5553
if os.path.exists(local_repo_path):
5654
print(f"Repository already exists at {local_repo_path}. Skipping clone.")
5755
return local_repo_path
5856

5957
attempts = 3
6058

61-
6259
for attempt in range(attempts):
6360
try:
6461
os.makedirs(local_repo_path, exist_ok=True)
@@ -106,7 +103,6 @@ def parse_documents():
106103
"GITHUB_OWNER and GITHUB_REPO environment variables must be set."
107104
)
108105

109-
110106
local_repo_path = clone_repository(owner, repo, branch, base_path)
111107

112108
nodes = []
@@ -143,7 +139,6 @@ def parse_documents():
143139
f"Found {len(matching_files)} {extension_list} files in the repository."
144140
)
145141

146-
147142
loader = SimpleDirectoryReader(
148143
input_dir=local_repo_path, required_exts=extensions, recursive=True
149144
)

0 commit comments

Comments
 (0)