Fixed SIM114 (if-with-same-arms): Combine `if` branches using logical `or` operator
This commit is contained in:
parent
a32354fd91
commit
618c466b84
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue