mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
DEV: Remove unused variable.
This commit is contained in:
parent
7ba681383d
commit
7f7464e3e6
@ -429,7 +429,7 @@ module PrettyText
|
||||
|
||||
def self.add_mentions(doc, user_id: nil)
|
||||
elements = doc.css("span.mention")
|
||||
names = elements.map { |element| name = element.text[1..-1] }
|
||||
names = elements.map { |element| element.text[1..-1] }
|
||||
|
||||
mentions = lookup_mentions(names, user_id: user_id)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user