From 6d6c628d85e845da796359de72ef9013ccbb2ebd Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 18 Dec 2017 12:12:09 -0300 Subject: [PATCH] Bug 18330: (follow-up) 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.39.5