Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2018-10-03 21:14:39 +0300
committerFatih Acet <acetfatih@gmail.com>2018-10-03 22:37:54 +0300
commit8aedb71c4900021ca74e188873278ac40356f40e (patch)
treed7fddfd11ee470b8e336019ba8b8000e1ead985e /app/serializers
parente3b96ad76bfc1a64218abb731029bd95584abe7f (diff)
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