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 <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2017-12-18 12:12:09 -03:00
parent e66a78d107
commit 6d6c628d85
1 changed files with 1 additions and 1 deletions

View File

@ -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'),