Merge branch '40335-master-is-broken-due-to-static-analysis' into 'master'

Resolve "`master` is broken due to `static-analysis`"

Closes #40335

See merge request gitlab-org/gitlab-ce!15481
This commit is contained in:
Sean McGivern 2017-11-20 13:15:49 +00:00
commit 16299d5724
1 changed files with 2 additions and 0 deletions

View File

@ -21,8 +21,10 @@ module Gollum
commit = @access.commit(sha)
tree_map_for(sha).inject([]) do |list, entry|
next list unless @page_class.valid_page_name?(entry.name)
list << entry.page(self, commit)
break list if limit && list.size >= limit
list
end
else