Commit 0a8039eb authored by Douwe Maan's avatar Douwe Maan

Remove useless assignments

parent 12546f89
...@@ -31,10 +31,8 @@ module Gitlab ...@@ -31,10 +31,8 @@ module Gitlab
def position_mapping def position_mapping
@position_mapping ||= begin @position_mapping ||= begin
mapping = [] mapping = []
raw_pos = 0
rich_pos = 0 rich_pos = 0
(0..raw_line.length).each do |raw_pos| (0..raw_line.length).each do |raw_pos|
raw_char = raw_line[raw_pos]
rich_char = rich_line[rich_pos] rich_char = rich_line[rich_pos]
# The raw and rich lines are the same except for HTML tags, # The raw and rich lines are the same except for HTML tags,
......
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