Skip to content

Commit 4e2f47b

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)