From 4d2487fdaed13a5eabf7af680f415035dd999d21 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 3 Nov 2023 12:10:42 -0400 Subject: [PATCH] Bug 34977: (QA follow-up) Tidy code Signed-off-by: Kyle M Hall --- patron_lists/delete.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/patron_lists/delete.pl b/patron_lists/delete.pl index 56aa9ba2cad..e7c227ea1f7 100755 --- a/patron_lists/delete.pl +++ b/patron_lists/delete.pl @@ -29,22 +29,22 @@ my $cgi = CGI->new; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { - template_name => "patron_lists/lists.tt", - query => $cgi, - type => "intranet", + template_name => "patron_lists/lists.tt", + query => $cgi, + type => "intranet", flagsrequired => { tools => 'manage_patron_lists' }, } ); -my $id = $cgi->param('patron_list_id'); +my $id = $cgi->param('patron_list_id'); my @lists_ids = $cgi->multi_param('patron_lists_ids'); -if (defined $id && $id ne '') { - DelPatronList({ patron_list_id => $id }); +if ( defined $id && $id ne '' ) { + DelPatronList( { patron_list_id => $id } ); } if (@lists_ids) { foreach my $list_id (@lists_ids) { - DelPatronList({ patron_list_id => $list_id }); + DelPatronList( { patron_list_id => $list_id } ); } } -- 2.30.2