From 3356cb6b8e7d5a5fe1557bd29db364790a66d752 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 Signed-off-by: Kyle M Hall Signed-off-by: Fridolin Somers --- 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.39.5