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:
parent
e66a78d107
commit
6d6c628d85
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue