Browse Source

Maintenance: Update dependency rubocop to v1.38.0

renovatebot 2 years ago
parent
commit
cafc9f21b4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Gemfile.lock
  2. 1 1
      lib/search_index_backend.rb

+ 1 - 1
Gemfile.lock

@@ -450,7 +450,7 @@ GEM
       rspec-core (> 3.3)
     rspec-support (3.11.1)
     rszr (1.3.0)
-    rubocop (1.37.1)
+    rubocop (1.38.0)
       json (~> 2.3)
       parallel (~> 1.10)
       parser (>= 3.1.2.1)

+ 1 - 1
lib/search_index_backend.rb

@@ -379,7 +379,7 @@ remove whole data from index
     result = (sort_by || [])
       .map(&:to_s)
       .each_with_object([])
-      .each_with_index do |(elem, memo), index|
+      .with_index do |(elem, memo), index|
         next if elem.blank?
         next if order_by&.at(index).blank?