update_nics: Change || next to or next (for readability)

This commit is contained in:
Richard Hansen 2024-08-29 00:32:11 -04:00
parent 20439bc130
commit c5df774b7e

View file

@ -1467,7 +1467,7 @@ sub update_nics {
# version-specific equivalents. # version-specific equivalents.
for my $h (@hosts) { for my $h (@hosts) {
local $_l = pushlogctx($h); local $_l = pushlogctx($h);
my $status = delete($config{$h}{'status'}) || next; my $status = delete($config{$h}{'status'}) or next;
my $ip = $config{$h}{'ip'}; my $ip = $config{$h}{'ip'};
my $ipv = is_ipv4($ip) ? '4' : is_ipv6($ip) ? '6' : undef; my $ipv = is_ipv4($ip) ? '4' : is_ipv6($ip) ? '6' : undef;
# TODO: Currently $config{$h}{'ip'} is used for two distinct purposes: it holds the # TODO: Currently $config{$h}{'ip'} is used for two distinct purposes: it holds the