freemyip: Invert condition to improve readability
This commit is contained in:
parent
9343ebec89
commit
a252ff5ebe
1 changed files with 6 additions and 6 deletions
|
@ -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/) {
|
||||
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");
|
||||
} else {
|
||||
failed("$h: Server said: $returned");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue