Bug 17327: (QA followup) Remove Carp::Always which is not used
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 26 Sep 2016 17:55:16 +0000 (14:55 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Sat, 24 Sep 2016 20:55:17 +0000 (20:55 +0000)
This patch removes the need for Carp::Always in .../Reserves/MultiplePerRecord.t
which is not actually used.

It also removes 'undef' from Koha::Holds::forced_hold_level's last return, to comply with
our QA rules.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Holds.pm
t/db_dependent/Reserves/MultiplePerRecord.t

index 6dc0c9e..038e31c 100644 (file)
@@ -77,7 +77,7 @@ sub forced_hold_level {
     my $record_level_count = $self->search( { itemnumber => undef } )->count();
     return 'record' if $record_level_count > 0;
 
-    return undef;
+    return;
 }
 
 =head3 type
index 9771051..d2da653 100755 (executable)
@@ -17,7 +17,6 @@
 # You should have received a copy of the GNU General Public License
 # along with Koha; if not, see <http://www.gnu.org/licenses>.
 
-use Carp::Always;
 use Modern::Perl;
 
 use Test::More tests => 38;