summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-13 09:45:21 +0100
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-13 09:45:21 +0100
commit3c16fb93fcfb7dc50a46a39cbdd545ddfdab0bc1 (patch)
treecc03698ed5bd5c0e9b37146744c94d2c2e359ee4 /lib
parentc613f2d9a85c60bdf34fdafdda41dd5ee1e32904 (diff)
downloadgitlab-ce-3c16fb93fcfb7dc50a46a39cbdd545ddfdab0bc1.tar.gz
Move spec to proper place and fix unused variablerefactor-complex-methods
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/inline_diff.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/gitlab/inline_diff.rb b/lib/gitlab/inline_diff.rb
index 72d0b493be0..44507bde25d 100644
--- a/lib/gitlab/inline_diff.rb
+++ b/lib/gitlab/inline_diff.rb
@@ -11,7 +11,6 @@ module Gitlab
indexes.each do |index|
first_line = diff_arr[index+1]
second_line = diff_arr[index+2]
- max_length = [first_line.size, second_line.size].max
# Skip inline diff if empty line was replaced with content
next if first_line == "-\n"