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:
authorRubén Dávila <rdavila84@gmail.com>2016-01-13 03:28:31 +0300
committerRubén Dávila <rdavila84@gmail.com>2016-01-13 03:28:31 +0300
commit7307fa48e70a9fb42902c8a84479d4cf669640aa (patch)
treed290dc481e7685ebd3236fc7c772561ec9efa52a /lib/gitlab/diff
parentf547e733d1f8acf2c8ae82835b91ae166cf95b16 (diff)
Fix broken specs. #3945
Diffstat (limited to 'lib/gitlab/diff')
-rw-r--r--lib/gitlab/diff/highlight.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/diff/highlight.rb b/lib/gitlab/diff/highlight.rb
index 14cf98e24a2..0b6a348acbc 100644
--- a/lib/gitlab/diff/highlight.rb
+++ b/lib/gitlab/diff/highlight.rb
@@ -73,7 +73,7 @@ module Gitlab
# Only update text if line is found. This will prevent
# issues with submodules given the line only exists in diff content.
- line.text = highlighted_line.gsub!(/\A\s/, line_prefix) if line
+ line.text = highlighted_line.gsub!(/\A\s/, line_prefix) if highlighted_line
end
@lines