dslreports1: Move out else case to improve readability

This commit is contained in:
Richard Hansen 2024-07-26 19:56:14 -04:00
parent 95a10e2595
commit 02c80fdf09

View file

@ -4272,13 +4272,12 @@ sub nic_dslreports1_update {
if ($return_code !~ /NOERROR/) {
$config{$h}{'status'} = 'failed';
failed("$h: $reply");
} else {
$config{$h}{'ip'} = $ip;
$config{$h}{'mtime'} = $now;
$config{$h}{'status'} = 'good';
success("$h: $return_code: IP address set to $ip");
next;
}
$config{$h}{'ip'} = $ip;
$config{$h}{'mtime'} = $now;
$config{$h}{'status'} = 'good';
success("$h: $return_code: IP address set to $ip");
}
}