From b587b5862467157762a2f013e8f04f067b6f14a5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 18 Dec 2017 12:12:09 -0300 Subject: [PATCH] Bug 18330: Do not return undef explicitely This patch fixes a perl critic issue, hopefully it will not break something else. Signed-off-by: Jonathan Druart --- Koha/Object.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Object.pm b/Koha/Object.pm index fc30adc2b3..0956cca836 100644 --- a/Koha/Object.pm +++ b/Koha/Object.pm @@ -224,7 +224,7 @@ sub TO_JSON { } elsif ( _datetime_column_type( $columns_info->{$col}->{data_type} ) ) { eval { - return undef unless $unblessed->{$col}; + return unless $unblessed->{$col}; $unblessed->{$col} = output_pref({ dateformat => 'rfc3339', dt => dt_from_string($unblessed->{$col}, 'sql'), -- 2.11.0