Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit a06bcb1

Browse files
fix: As both conditions are checked, added falsy check
Signed-off-by: Radhika Agrawal <agrawalradhika@google.com>
1 parent 18fc66c commit a06bcb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google/auth/transport/_mtls_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def check_use_client_cert():
421421
"""
422422
use_client_cert = os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE")
423423
### Check if the value of GOOGLE_API_USE_CLIENT_CERTIFICATE is unset.
424-
if use_client_cert == "" or use_client_cert is None:
424+
if not use_client_cert:
425425
cert_path = os.getenv("GOOGLE_API_CERTIFICATE_CONFIG")
426426
if cert_path:
427427
with open(cert_path, "r") as f:

0 commit comments

Comments
 (0)