Bug 18296: Remove perlcritic error (request.pl)
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 8 Jun 2017 14:59:38 +0000 (11:59 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 8 Jun 2017 14:59:38 +0000 (11:59 -0300)
"$itemnumbers_of_biblioitem" is declared but not used at line 314,
column 5.  Unused variables clutter code and make it harder to read.
(Severity: 3)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

reserve/request.pl

index 9ec204c..db35e16 100755 (executable)
@@ -311,7 +311,7 @@ foreach my $biblionumber (@biblionumbers) {
 
     ## Here we go backwards again to create hash of biblioitemnumber to itemnumbers,
     ## when by definition all of the itemnumber have the same biblioitemnumber
-    my ( $itemnumbers_of_biblioitem, $iteminfos_of);
+    my ( $iteminfos_of );
     while ( my $item = $items->next ) {
         $item = $item->unblessed;
         my $biblioitemnumber = $item->{biblioitemnumber};