From 3178ae5dd3c6a7b4d19fee3123ff345622d89dd1 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 27 Jan 2022 09:58:34 +0000 Subject: [PATCH] Bug 20517: (QA follow-up) Fix return undef. Signed-off-by: Nick Clemens --- C4/SIP/ILS/Transaction/Checkin.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/SIP/ILS/Transaction/Checkin.pm b/C4/SIP/ILS/Transaction/Checkin.pm index ee5da78004..9fa73eda0d 100644 --- a/C4/SIP/ILS/Transaction/Checkin.pm +++ b/C4/SIP/ILS/Transaction/Checkin.pm @@ -232,7 +232,7 @@ sub _get_sort_bin { # We should get an item represented as a hashref here my ( $item, $branch ) = @_; - return undef unless $item; + return unless $item; # Get the mapping and split on newlines my $raw_map = C4::Context->preference('SIP2SortBinMapping'); @@ -275,7 +275,7 @@ sub _get_sort_bin { } # Return undef if no hits were found - return undef; + return; } 1; -- 2.30.2