From e1a95094e731f3816ff862fe22c317006f0f73ff Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 21 May 2018 11:01:58 -0300 Subject: [PATCH] Revert "Bug 20073: Remove perlcritic error" This reverts commit 67359a97f4cbf828dbe93a7b08ec7283258b46c5. Signed-off-by: Jonathan Druart --- Koha/SearchEngine/Elasticsearch.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm index 0b33c06b3b..e90af21711 100644 --- a/Koha/SearchEngine/Elasticsearch.pm +++ b/Koha/SearchEngine/Elasticsearch.pm @@ -165,7 +165,7 @@ sub get_elasticsearch_mappings { if (!defined $all_mappings{$self->index}) { $sort_fields{$self->index} = {}; my $mappings = { - data => scalar _get_elasticsearch_mapping('general', '') + data => _get_elasticsearch_mapping('general', '') }; my $marcflavour = lc C4::Context->preference('marcflavour'); $self->_foreach_mapping( @@ -242,7 +242,7 @@ sub _get_elasticsearch_mapping { if (defined $settings->{$purpose}{'default'}) { return $settings->{$purpose}{'default'}; } - return; + return undef; } sub reset_elasticsearch_mappings { -- 2.39.5