MT#60611 helper/del-value: Delete misplaced APPEND handling

The handling for the APPEND pseudo-action comes from the set-value code,
but it does not make sense in the del-value code, where we are trying to
remove a value and not add one.

Change-Id: I6937abcde0f9c0e55c334ca24f9ecb879f00f4be
mr13.0
Guillem Jover 2 years ago
parent 4250a3f29e
commit 125ab4c0a2

@ -31,9 +31,6 @@ for my $component (@path) {
elsif (looks_like_number($component) && (! defined(${$valref}) || ref(${$valref}) eq 'ARRAY')) {
$valref = \${$valref}->[$component];
}
elsif ($component eq 'APPEND' && ref($$valref) eq 'ARRAY') {
$valref = \${$valref}->[$#{$$valref}+1];
}
elsif (! defined(${$valref}) || ref(${$valref}) eq 'HASH') {
$valref = \${$valref}->{$component};
}

Loading…
Cancel
Save