DEV: Remove unused variable.

This commit is contained in:
Guo Xiang Tan 2018-11-23 08:31:52 +08:00
parent 7ba681383d
commit 7f7464e3e6

View File

@ -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)