From ba8ba0b19d5a3a7000a4bde36bcd564d0ac8f0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenzo=20Fundar=C3=B3?= Date: Mon, 14 Dec 2020 10:25:52 +0100 Subject: [PATCH] Fix if expression to be more python-idiomatic Co-authored-by: alexzorin --- certbot-dns-google/certbot_dns_google/_internal/dns_google.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot-dns-google/certbot_dns_google/_internal/dns_google.py b/certbot-dns-google/certbot_dns_google/_internal/dns_google.py index 5a405b4a2..cd4b2d2d5 100644 --- a/certbot-dns-google/certbot_dns_google/_internal/dns_google.py +++ b/certbot-dns-google/certbot_dns_google/_internal/dns_google.py @@ -251,7 +251,7 @@ class _GoogleClient(object): "requesting a wildcard certificate, this might not work.") logger.debug("Error was:", exc_info=True) else: - if response and len(response["rrsets"]) != 0: + if response and response["rrsets"]: return response["rrsets"][0]["rrdatas"] return None