From 3ea4a5ed29b4ae06c9bfd1d8561190d69b0e7242 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Mon, 19 Dec 2022 13:17:29 -0800 Subject: [PATCH] Fix rubocop complaint --- app/lib/importer/statuses_index_importer.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/lib/importer/statuses_index_importer.rb b/app/lib/importer/statuses_index_importer.rb index 1c62a5e708..795bb057c5 100644 --- a/app/lib/importer/statuses_index_importer.rb +++ b/app/lib/importer/statuses_index_importer.rb @@ -25,8 +25,9 @@ class Importer::StatusesIndexImporter < Importer::BaseImporter # on the results of the filter, so this filtering happens here instead bulk.map! do |entry| new_entry = begin - if entry[:index] && entry.dig(:index, :data, 'searchable_by').blank? && - Rails.configuration.x.search_scope == :classic + if entry[:index] && + entry.dig(:index, :data, 'searchable_by').blank? && + Rails.configuration.x.search_scope == :classic { delete: entry[:index].except(:data) } else entry