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

Commit 8fa9fb6

Browse files
fix: check update in _mtls_helper
Signed-off-by: Radhika Agrawal <agrawalradhika@google.com>
1 parent ff1de0a commit 8fa9fb6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

google/auth/transport/_mtls_helper.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,7 @@ def check_use_client_cert():
423423
use_client_cert = getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE")
424424
# Check if the value of GOOGLE_API_USE_CLIENT_CERTIFICATE is set.
425425
if use_client_cert:
426-
if use_client_cert.lower() == "true":
427-
return True
428-
else:
429-
return False
426+
return use_client_cert.lower() == "true"
430427
else:
431428
# Check if the value of GOOGLE_API_CERTIFICATE_CONFIG is set.
432429
cert_path = getenv("GOOGLE_API_CERTIFICATE_CONFIG")

0 commit comments

Comments
 (0)