aboutsummaryrefslogtreecommitdiff
path: root/sboremove
diff options
context:
space:
mode:
Diffstat (limited to 'sboremove')
-rwxr-xr-xsboremove6
1 files changed, 1 insertions, 5 deletions
diff --git a/sboremove b/sboremove
index 9622bca..c04f1c8 100755
--- a/sboremove
+++ b/sboremove
@@ -110,11 +110,7 @@ sub get_required_by {
sub confirm_remove {
my $sbo = shift;
- my $found = 0;
- for my $conf (@confirmed) {
- $found++ if $sbo eq $conf;
- }
- push @confirmed, $sbo unless $found;
+ push @confirmed, $sbo unless in($sbo => @confirmed);
return 1;
}