domeneshop: Whitespace fixes

This commit is contained in:
Richard Hansen 2024-07-22 21:59:52 -04:00
parent f0edd7f781
commit 231601ae54

View file

@ -4313,9 +4313,7 @@ EoEXAMPLE
###################################################################### ######################################################################
sub nic_domeneshop_update { sub nic_domeneshop_update {
debug("\nnic_domeneshop_update -------------------"); debug("\nnic_domeneshop_update -------------------");
my $endpointPath = "/v0/dyndns/update"; my $endpointPath = "/v0/dyndns/update";
for my $h (@_) { for my $h (@_) {
my $ip = delete $config{$h}{'wantip'}; my $ip = delete $config{$h}{'wantip'};
info("Setting IP address to %s for %s", $ip, $h); info("Setting IP address to %s for %s", $ip, $h);
@ -4326,13 +4324,11 @@ sub nic_domeneshop_update {
login => $config{$h}{'login'}, login => $config{$h}{'login'},
password => $config{$h}{'password'}, password => $config{$h}{'password'},
); );
if (!defined($reply) || !$reply) { if (!defined($reply) || !$reply) {
failed("Updating %s: Could not connect to %s.", $h, $config{$h}{'server'}); failed("Updating %s: Could not connect to %s.", $h, $config{$h}{'server'});
next; next;
} }
next if !header_ok($h, $reply); next if !header_ok($h, $reply);
my @reply = split /\n/, $reply; my @reply = split /\n/, $reply;
my $status = shift(@reply); my $status = shift(@reply);
my $message = pop(@reply); my $message = pop(@reply);