summaryrefslogtreecommitdiff
path: root/app/views/projects/diffs
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2018-08-31 18:28:29 -0700
committerRobert Speicher <rspeicher@gmail.com>2018-08-31 18:29:37 -0700
commit94531f76d470189c50e679c671ff5430d18a88ba (patch)
treea72f22189c2c1a31d0058d0dc44e5a0de43d29d2 /app/views/projects/diffs
parent6dc252e4066d4e9100954f51e357bdaaffba6e64 (diff)
downloadgitlab-ce-94531f76d470189c50e679c671ff5430d18a88ba.tar.gz
Correct remaining `Lint/UselessAssignment` haml-lint violations
Diffstat (limited to 'app/views/projects/diffs')
-rw-r--r--app/views/projects/diffs/_parallel_view.html.haml1
-rw-r--r--app/views/projects/diffs/_single_image_diff.html.haml2
2 files changed, 0 insertions, 3 deletions
diff --git a/app/views/projects/diffs/_parallel_view.html.haml b/app/views/projects/diffs/_parallel_view.html.haml
index e47361354f3..4b1d4b3ea17 100644
--- a/app/views/projects/diffs/_parallel_view.html.haml
+++ b/app/views/projects/diffs/_parallel_view.html.haml
@@ -5,7 +5,6 @@
- diff_file.parallel_diff_lines.each do |line|
- left = line[:left]
- right = line[:right]
- - last_line = right.new_pos if right
- discussions_left, discussions_right = parallel_diff_discussions(left, right, diff_file)
%tr.line_holder.parallel
- if left
diff --git a/app/views/projects/diffs/_single_image_diff.html.haml b/app/views/projects/diffs/_single_image_diff.html.haml
index 12be8beab39..454f814795a 100644
--- a/app/views/projects/diffs/_single_image_diff.html.haml
+++ b/app/views/projects/diffs/_single_image_diff.html.haml
@@ -1,7 +1,5 @@
- blob = diff_file.blob
-- old_blob = diff_file.old_blob
- blob_raw_url = diff_file_blob_raw_url(diff_file)
-- old_blob_raw_url = diff_file_old_blob_raw_url(diff_file)
- click_to_comment = local_assigns.fetch(:click_to_comment, true)
- diff_view_data = local_assigns.fetch(:diff_view_data, '')
- class_name = ''