Skip to content

Commit

Permalink
HashId: do not notify when deleting an undef value (Debian #876967)
Browse files Browse the repository at this point in the history
Thanks to Thomas Schmitt for the report
  • Loading branch information
dod38fr committed Oct 12, 2017
1 parent 142d479 commit 9237f0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Config/Model/AnyId.pm
Expand Up @@ -949,7 +949,8 @@ sub delete {

delete $self->{warning_hash}{$idx};
my $ret = $self->_delete($idx);
$self->notify_change( note => "deleted entry $idx" );
# notification is not needed if the value was already delete or missing
$self->notify_change( note => "deleted entry $idx" ) if defined $ret;
return $ret;
}

Expand Down

0 comments on commit 9237f0f

Please sign in to comment.