From 77179609a228dfde3ba64985995588558a09cf31 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 16 Feb 2018 14:26:46 -0300 Subject: [PATCH] Bug 18789: Fix perlcritic issue - housebound.pl "$branch" is declared but not used at line 65, column 1. Unused variables clutter code and make it harder to read. (Severity: 3) --- members/housebound.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/housebound.pl b/members/housebound.pl index 9d65f4f632..574bacdbb1 100755 --- a/members/housebound.pl +++ b/members/housebound.pl @@ -62,7 +62,7 @@ my $patron = Koha::Patrons->find($borrowernumber); output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); # Get supporting cast -my ( $branch, $houseboundprofile, $visit ); +my ( $houseboundprofile, $visit ); if ( $patron ) { # FIXME This test is not needed - output_and_exit_if_error handles it $houseboundprofile = $patron->housebound_profile; } -- 2.11.0