diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-22 20:02:17 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-22 20:02:17 +0200 |
commit | 271477d8c26794abd8310e2abb89b746204660af (patch) | |
tree | a4701a52f9ff1918e25a75e09267bfba0b063296 /showdependencygraph.cgi | |
parent | 3417cb73db6d2306a012d3c624e9bec92fa1a161 (diff) | |
download | bugzilla-271477d8c26794abd8310e2abb89b746204660af.tar.gz bugzilla-271477d8c26794abd8310e2abb89b746204660af.tar.xz |
Bug 560009: Use firstidx from List::MoreUtils instead of lsearch
r=timello, a=mkanat
Diffstat (limited to 'showdependencygraph.cgi')
-rwxr-xr-x | showdependencygraph.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index e73b1f633..a036ee0c9 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -101,7 +101,7 @@ my @valid_rankdirs = ('LR', 'RL', 'TB', 'BT'); my $rankdir = $cgi->param('rankdir') || 'TB'; # Make sure the submitted 'rankdir' value is valid. -if (lsearch(\@valid_rankdirs, $rankdir) < 0) { +if (!grep { $_ eq $rankdir } @valid_rankdirs) { $rankdir = 'TB'; } |