dondominio: Invert condition to improve readability
This commit is contained in:
parent
d79ef268bd
commit
6ac5b41a20
1 changed files with 6 additions and 6 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue