1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

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

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