summaryrefslogtreecommitdiff
path: root/app/helpers/diff_helper.rb
diff options
context:
space:
mode:
authorAnnabel Dunstone <annabel.dunstone@gmail.com>2016-04-14 09:10:36 -0500
committerAnnabel Dunstone <annabel.dunstone@gmail.com>2016-04-14 12:33:29 -0500
commit80d8f8b87609ffb9b0fcc1f74fbeb4520a193e07 (patch)
tree31c0627cb7de55dedeb21268137525b9b6e380a2 /app/helpers/diff_helper.rb
parent2f81baf4767df7ce0144a63b4e451b7d8e09f86a (diff)
downloadgitlab-ce-80d8f8b87609ffb9b0fcc1f74fbeb4520a193e07.tar.gz
Syntax & style updates14176-diff-paste-data
Diffstat (limited to 'app/helpers/diff_helper.rb')
-rw-r--r--app/helpers/diff_helper.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb
index 0504cfb7591..6a3ec83b8c0 100644
--- a/app/helpers/diff_helper.rb
+++ b/app/helpers/diff_helper.rb
@@ -44,9 +44,7 @@ module DiffHelper
if line.blank?
" &nbsp;".html_safe
else
- if line_type == 'new' || line_type == 'old'
- line[0] = " "
- end
+ line[0] = ' ' if %w[new old].include?(line_type)
line
end
end