freemyip: Invert condition to improve readability

This commit is contained in:
Richard Hansen 2024-07-21 22:20:13 -04:00
parent 9343ebec89
commit a252ff5ebe

View file

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