From c48ac7a05a82e4a27ad9dd2d2bae5119cf34e5a5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 16 Feb 2018 14:26:46 -0300 Subject: [PATCH] Bug 18789: (follow-up) 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) Signed-off-by: Jonathan Druart --- 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.39.5