mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-25 12:34:58 +01:00
Fix Style/MapIntoArray
cop in context helper (#29885)
This commit is contained in:
parent
4948a063d2
commit
b57ee5cf5b
@ -48,13 +48,11 @@ module ContextHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def serialized_context(named_contexts_map, context_extensions_map)
|
def serialized_context(named_contexts_map, context_extensions_map)
|
||||||
context_array = []
|
|
||||||
|
|
||||||
named_contexts = named_contexts_map.keys
|
named_contexts = named_contexts_map.keys
|
||||||
context_extensions = context_extensions_map.keys
|
context_extensions = context_extensions_map.keys
|
||||||
|
|
||||||
named_contexts.each do |key|
|
context_array = named_contexts.map do |key|
|
||||||
context_array << NAMED_CONTEXT_MAP[key]
|
NAMED_CONTEXT_MAP[key]
|
||||||
end
|
end
|
||||||
|
|
||||||
extensions = context_extensions.each_with_object({}) do |key, h|
|
extensions = context_extensions.each_with_object({}) do |key, h|
|
||||||
|
Loading…
Reference in New Issue
Block a user