porkbun: Consolidate lines to improve readability

This commit is contained in:
Richard Hansen 2024-07-23 01:23:07 -04:00
parent c6bcfd4644
commit 4273580bdf

View file

@ -6791,10 +6791,7 @@ sub nic_porkbun_update {
}
info("subdomain %s, root domain %s", $sub_domain, $domain) if $sub_domain ne '';
for my $ipv ('ipv4', 'ipv6') {
my $ip = delete $config{$h}{"want$ipv"};
if (!$ip) {
next;
}
my $ip = delete $config{$h}{"want$ipv"} or next;
my $rrset_type = is_ipv6($ip) ? "AAAA" : "A";
info("setting %s address to %s for %s", $ipv, $ip, $h);
verbose("UPDATE:","updating %s", $h);