mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-04-15 23:47:24 +02:00
Fixed PLR6104 (non-augmented-assignment): Use += to perform an augmented assignment directly
This commit is contained in:
@@ -918,7 +918,7 @@ def set_custom_dns_record(qname, rtype, value, action, env):
|
||||
|
||||
# ensure value has a trailing dot
|
||||
if not value.endswith("."):
|
||||
value = value + "."
|
||||
value += "."
|
||||
|
||||
if not re.search(DOMAIN_RE, value):
|
||||
msg = "Invalid value."
|
||||
|
||||
Reference in New Issue
Block a user