Bug 21073: (QA follow-up) Don't call -> twice!
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 17 Jun 2019 11:17:43 +0000 (08:17 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 18 Jun 2019 16:30:39 +0000 (17:30 +0100)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Plugins/Handler.pm

index 30b9e8b..aa4970c 100644 (file)
@@ -66,7 +66,6 @@ sub run {
     if ( $has_method ) {
         load $plugin_class;
         my $plugin = $plugin_class->new( { cgi => $cgi, enable_plugins => $args->{'enable_plugins'} } );
-        my @return = $plugin->$plugin_method( $params );
         return $plugin->$plugin_method( $params );
     } else {
         warn "Plugin does not have method $plugin_method";