summaryrefslogtreecommitdiff
path: root/lib/github
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2017-10-10 14:44:14 -0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2017-10-12 22:13:05 -0300
commit9fdde3693b3b49e929b7c80ccbec4abe412edb7f (patch)
treea0d6b1b4a21a2c2cc6d2322ecb410e08ef9103a4 /lib/github
parentfaa9bd402d3521b3f7b4cc2583f8ef1b3cceb821 (diff)
downloadgitlab-ce-conflict-resolution-refactor.tar.gz
Move line code generation into Gitlab::Gitconflict-resolution-refactor
Having a distinct class just for that was a bit overkill
Diffstat (limited to 'lib/github')
-rw-r--r--lib/github/representation/comment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/github/representation/comment.rb b/lib/github/representation/comment.rb
index 0cb871630fd..83bf0b5310d 100644
--- a/lib/github/representation/comment.rb
+++ b/lib/github/representation/comment.rb
@@ -23,7 +23,7 @@ module Github
private
def generate_line_code(line)
- Gitlab::Git::Conflict::LineCode.generate(file_path, line.new_pos, line.old_pos)
+ Gitlab::Git.diff_line_code(file_path, line.new_pos, line.old_pos)
end
def on_diff?