Skip to content

Commit

Permalink
update_nics: Change || next to or next (for readability)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhansen committed Sep 2, 2024
1 parent 20439bc commit c5df774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddclient.in
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ sub update_nics {
# version-specific equivalents.
for my $h (@hosts) {
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 $ipv = is_ipv4($ip) ? '4' : is_ipv6($ip) ? '6' : undef;
# TODO: Currently $config{$h}{'ip'} is used for two distinct purposes: it holds the
Expand Down

0 comments on commit c5df774

Please sign in to comment.