Fix if expression to be more python-idiomatic

Co-authored-by: alexzorin <alex@zor.io>
This commit is contained in:
Lorenzo Fundaró
2020-12-14 10:25:52 +01:00
committed by GitHub
co-authored by alexzorin
parent 4ff6f6917f
commit ba8ba0b19d
@@ -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