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:
authorRémy Coutable <remy@rymai.me>2016-03-16 12:16:49 +0300
committerRémy Coutable <remy@rymai.me>2016-03-16 12:16:49 +0300
commitcacd3373ff7d5f3c8cc5774527e2474f9a28fc92 (patch)
tree58e4426905d64660d8c04020514a86bdb4306264 /lib/gitlab/diff/parser.rb
parent1e8bf60f40426de9cc6671a42019237688a848ac (diff)
parent374037b8a326b82a7787b2e29da820aa9c4390b3 (diff)
Merge remote-tracking branch 'origin/master' into 8-6-stable
Diffstat (limited to 'lib/gitlab/diff/parser.rb')
-rw-r--r--lib/gitlab/diff/parser.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/diff/parser.rb b/lib/gitlab/diff/parser.rb
index d0f6ba23ab4..d0815fc7eea 100644
--- a/lib/gitlab/diff/parser.rb
+++ b/lib/gitlab/diff/parser.rb
@@ -4,6 +4,8 @@ module Gitlab
include Enumerable
def parse(lines)
+ return [] if lines.blank?
+
@lines = lines
line_obj_index = 0
line_old = 1