Skip to content

Commit b4b9450

Browse files
hebaalazzehparthea
andauthored
Update packages/google-api-core/google/api_core/gapic_v1/_routing.py
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 317c7ec commit b4b9450

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/google-api-core/google/api_core/gapic_v1

packages/google-api-core/google/api_core/gapic_v1/_routing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def get_universe_domain(
9494
"""Return the universe domain used by the client."""
9595
universe_domain = default_universe
9696
if client_universe_domain is not None:
97-
universe_domain = client_universe_domain
97+
universe_domain = client_universe_domain.strip()
9898
elif universe_domain_env is not None:
99-
universe_domain = universe_domain_env
100-
if len(universe_domain.strip()) == 0:
99+
universe_domain = universe_domain_env.strip()
100+
if not universe_domain:
101101
raise ValueError("Universe Domain cannot be an empty string.")
102102
return universe_domain

0 commit comments

Comments
 (0)