dondominio: Invert condition to improve readability

This commit is contained in:
Richard Hansen 2024-07-23 00:29:47 -04:00
parent d79ef268bd
commit 6ac5b41a20

View file

@ -6532,14 +6532,14 @@ sub nic_dondominio_update {
next if !header_ok($h, $reply);
my @reply = split /\n/, $reply;
my $returned = pop(@reply);
if ($returned =~ /OK|IP:$ip/) {
if ($returned !~ /OK|IP:$ip/) {
failed("$h: Server said: $returned");
next;
}
$config{$h}{'ip'} = $ip;
$config{$h}{'mtime'} = $now;
$config{$h}{'status'} = 'good';
success("$h: IP address set to $ip");
} else {
failed("$h: Server said: $returned");
}
}
}