commit 276bd0ce2cb307fe8bb822308688837019cd4f4e parent 594de5067ef8922f1125c948747490550a30a7d9 Author: Andreas Guldstrand <andreas.guldstrand@gmail.com> Date: Mon, 2 May 2016 15:40:52 +0200 sboremove: change another loop to use in() Diffstat:
| M | sboremove | | | 6 | +----- |
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/sboremove b/sboremove @@ -98,11 +98,7 @@ sub get_required_by { my @dep_of; if ( $required_by{$sbo} ) { for my $req_by (@{$required_by{$sbo}}) { - my $found = 0; - for my $conf (@confirmed) { - $found++ if $req_by eq $conf; - } - push @dep_of, $req_by unless $found; + push @dep_of, $req_by unless in($req_by => @confirmed); } } return exists $dep_of[0] ? \@dep_of : undef;