From 23dff4241e592f1d26fb96b84a5ae484c6a5904d Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 14 Dec 2020 20:49:00 +0100 Subject: [PATCH] fix rubocop linting. #1168 --- app/models/concerns/indexable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/indexable.rb b/app/models/concerns/indexable.rb index ae183c2dc..cad216f4d 100644 --- a/app/models/concerns/indexable.rb +++ b/app/models/concerns/indexable.rb @@ -1219,7 +1219,7 @@ def delete_by_query(options = {}) client = Elasticsearch::Model.client response = - client.delete_by_query(index: options[:index], body: { query: { query_string: { query: options[:query] }}}) + client.delete_by_query(index: options[:index], body: { query: { query_string: { query: options[:query] } } }) if response.to_h["deleted"] "Deleted #{response.to_h['deleted'].to_i} DOIs."