Fixed SIM114 (if-with-same-arms): Combine `if` branches using logical `or` operator

This commit is contained in:
Teal Dulcet 2023-12-23 05:52:53 -08:00 committed by Joshua Tauberer
parent a32354fd91
commit 618c466b84
1 changed files with 1 additions and 3 deletions

View File

@ -678,9 +678,7 @@ def check_mail_domain(domain, env, output):
recommended_mx = "10 " + env['PRIMARY_HOSTNAME']
mx = query_dns(domain, "MX", nxdomain=None)
if mx is None:
mxhost = None
elif mx == "[timeout]":
if mx is None or mx == "[timeout]":
mxhost = None
else:
# query_dns returns a semicolon-delimited list