Fix rubocop complaint
This commit is contained in:
		
							parent
							
								
									844a1b8476
								
							
						
					
					
						commit
						3ea4a5ed29
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -25,7 +25,8 @@ class Importer::StatusesIndexImporter < Importer::BaseImporter
 | 
				
			||||||
          # on the results of the filter, so this filtering happens here instead
 | 
					          # on the results of the filter, so this filtering happens here instead
 | 
				
			||||||
          bulk.map! do |entry|
 | 
					          bulk.map! do |entry|
 | 
				
			||||||
            new_entry = begin
 | 
					            new_entry = begin
 | 
				
			||||||
              if entry[:index] && entry.dig(:index, :data, 'searchable_by').blank? &&
 | 
					              if entry[:index] &&
 | 
				
			||||||
 | 
					                 entry.dig(:index, :data, 'searchable_by').blank? &&
 | 
				
			||||||
                 Rails.configuration.x.search_scope == :classic
 | 
					                 Rails.configuration.x.search_scope == :classic
 | 
				
			||||||
                { delete: entry[:index].except(:data) }
 | 
					                { delete: entry[:index].except(:data) }
 | 
				
			||||||
              else
 | 
					              else
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue