Commit a7cebd8b authored by Lin Jen-Shin's avatar Lin Jen-Shin

Avoid extra array allocation

parent 3653810e
...@@ -8,7 +8,9 @@ module EE ...@@ -8,7 +8,9 @@ module EE
override :extracted_mentionables override :extracted_mentionables
def extracted_mentionables(refs) def extracted_mentionables(refs)
super + refs.epics super.concat(
refs.epics
)
end end
end end
end end
...@@ -10,10 +10,9 @@ module EE ...@@ -10,10 +10,9 @@ module EE
override :other_patterns override :other_patterns
def other_patterns def other_patterns
[ super.unshift(
::Epic.reference_pattern, ::Epic.reference_pattern
*super )
]
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment