summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2018-10-03 20:14:39 +0200
committerFatih Acet <acetfatih@gmail.com>2018-10-03 21:37:54 +0200
commit8aedb71c4900021ca74e188873278ac40356f40e (patch)
treed7fddfd11ee470b8e336019ba8b8000e1ead985e /app/serializers
parente3b96ad76bfc1a64218abb731029bd95584abe7f (diff)
downloadgitlab-ce-8aedb71c4900021ca74e188873278ac40356f40e.tar.gz
Fix showing diff file header for renamed files
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/diff_file_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/diff_file_entity.rb b/app/serializers/diff_file_entity.rb
index cbe6f200b86..c193ed10fef 100644
--- a/app/serializers/diff_file_entity.rb
+++ b/app/serializers/diff_file_entity.rb
@@ -84,7 +84,7 @@ class DiffFileEntity < Grape::Entity
end
expose :old_path_html do |diff_file|
- old_path = mark_inline_diffs(diff_file.old_path, diff_file.new_path)
+ old_path, _ = mark_inline_diffs(diff_file.old_path, diff_file.new_path)
old_path
end