From 8ec8da0491ad89604700b3e29a227966f6d84ba1 Mon Sep 17 00:00:00 2001 From: Perl Tidy Date: Wed, 5 Dec 2018 15:38:52 -0500 Subject: no bug - reformat all the code using the new perltidy rules --- describekeywords.cgi | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'describekeywords.cgi') diff --git a/describekeywords.cgi b/describekeywords.cgi index f48b88b7f..1a047931d 100755 --- a/describekeywords.cgi +++ b/describekeywords.cgi @@ -33,9 +33,9 @@ use Bugzilla::Keyword; Bugzilla->login(); -my $cgi = Bugzilla->cgi; +my $cgi = Bugzilla->cgi; my $template = Bugzilla->template; -my $vars = {}; +my $vars = {}; # Run queries against the shadow DB. Bugzilla->switch_to_shadow_db; @@ -43,14 +43,13 @@ Bugzilla->switch_to_shadow_db; # Hide bug counts for security keywords from users who aren't a member of the # security group my $can_see_security = Bugzilla->user->in_group('core-security-release'); -my $keywords = Bugzilla::Keyword->get_all_with_bug_count(); +my $keywords = Bugzilla::Keyword->get_all_with_bug_count(); foreach my $keyword (@$keywords) { - $keyword->{'bug_count'} = 0 - if $keyword->name =~ /^(?:sec|csec|wsec|opsec)-/ - && !$can_see_security; + $keyword->{'bug_count'} = 0 + if $keyword->name =~ /^(?:sec|csec|wsec|opsec)-/ && !$can_see_security; } -$vars->{'keywords'} = $keywords; +$vars->{'keywords'} = $keywords; $vars->{'caneditkeywords'} = Bugzilla->user->in_group("editkeywords"); print Bugzilla->cgi->header(); -- cgit v1.2.3-24-g4f1b