Skip to content

Commit

Permalink
chore: address PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammad Abdollahpour <[email protected]>
  • Loading branch information
mabdollahpour-ol committed Oct 28, 2024
1 parent 3044d69 commit 35b5a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/macaron/repo_finder/repo_finder_deps_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_project_info(project_url: str) -> dict[str, Any] | None:

request_url = f"https://api.deps.dev/v3alpha/projects/{encode(project_key, safe='')}"
response = send_get_http_raw(request_url)
if response is None or response.status_code != 200 or not response.text:
if response is None or not response.text:
logger.debug("Failed to retrieve additional repo info for: %s", project_url)
return None

Expand Down
2 changes: 1 addition & 1 deletion src/macaron/repo_verifier/repo_verifier_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def find_file_in_repo(root_dir: Path, filename: str) -> Path | None:
# files (e.g., gradle.properties) for the purpose of repo verification
# without breaking the current logic of finding build directories.
# + Add the capability to return the content/path of the file.
if not os.path.exists(root_dir) or not os.path.isdir(root_dir):
if not os.path.isdir(root_dir):
return None

queue: deque[Path] = deque()
Expand Down

0 comments on commit 35b5a9e

Please sign in to comment.