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