Fix Style/MapToHash cop (#34327)
This commit is contained in:
1 parent
33f3a4c4c8
commit
b4e56822c7
2 files changed
+2
-7
No files matched your search
@@ -342,7 +342,7 @@ class Status < ApplicationRecord
|
||||
end
|
||||
|
||||
def bookmarks_map(status_ids, account_id)
|
||||
Bookmark.select(:status_id).where(status_id: status_ids).where(account_id: account_id).map { |f| [f.status_id, true] }.to_h
|
||||
Bookmark.select(:status_id).where(status_id: status_ids).where(account_id: account_id).to_h { |f| [f.status_id, true] }
|
||||
end
|
||||
|
||||
def reblogs_map(status_ids, account_id)
|
||||
|
||||
Reference in new issue
Block a user