dslreports1: Move out else
case to improve readability
This commit is contained in:
parent
95a10e2595
commit
02c80fdf09
1 changed files with 5 additions and 6 deletions
|
@ -4272,15 +4272,14 @@ sub nic_dslreports1_update {
|
|||
if ($return_code !~ /NOERROR/) {
|
||||
$config{$h}{'status'} = 'failed';
|
||||
failed("$h: $reply");
|
||||
|
||||
} else {
|
||||
next;
|
||||
}
|
||||
$config{$h}{'ip'} = $ip;
|
||||
$config{$h}{'mtime'} = $now;
|
||||
$config{$h}{'status'} = 'good';
|
||||
success("$h: $return_code: IP address set to $ip");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
######################################################################
|
||||
## nic_domeneshop_examples
|
||||
|
|
Loading…
Reference in a new issue