Skip to content

Commit

Permalink
style: beautify 4fcb737
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Apr 20, 2024
1 parent 4fcb737 commit 62bec82
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions semantic_release/hvcs/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ def __init__(
# lets check what we have been given and set the api url accordingly
# NOTE: Github Server (on premise) uses a path prefix '/api/v3' for the api
# while GitHub Enterprise Cloud uses a separate subdomain as the base
is_github_cloud = bool(
self.hvcs_domain.url == f"https://{self.DEFAULT_DOMAIN}"
)
is_github_cloud = bool(self.hvcs_domain.url == f"https://{self.DEFAULT_DOMAIN}")

# Calculate out the api url that we expect for GitHub Cloud
default_cloud_api_url = parse_url(
Expand Down Expand Up @@ -486,7 +484,7 @@ def _derive_url(
lambda x: x[1] is not None,
{
"auth": auth,
"path": str(PurePosixPath("/", path.lstrip('/'))),
"path": str(PurePosixPath("/", path.lstrip("/"))),
"query": query,
"fragment": fragment,
}.items(),
Expand Down

0 comments on commit 62bec82

Please sign in to comment.