From 4273580bdfc733b0c4e988ebb6b682d821232162 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 23 Jul 2024 01:23:07 -0400 Subject: [PATCH] porkbun: Consolidate lines to improve readability --- ddclient.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ddclient.in b/ddclient.in index daadf0d..7714fc0 100755 --- a/ddclient.in +++ b/ddclient.in @@ -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);