diff options
author | Rémy Coutable <remy@rymai.me> | 2017-11-20 12:24:49 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-11-20 12:25:07 +0100 |
commit | 0531ccc6fddbe8290c0bb83f6ea8e61a1d6e753c (patch) | |
tree | 1b2816b2980a55b6b38742d5bc8f7be068ad0439 /config | |
parent | 202ab62874bb3d828ab48017550660d461e8cf6b (diff) | |
download | gitlab-ce-0531ccc6fddbe8290c0bb83f6ea8e61a1d6e753c.tar.gz |
Fix offense to the LineBreakAfterGuardClauses cop40335-master-is-broken-due-to-static-analysis
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/gollum.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/gollum.rb b/config/initializers/gollum.rb index 2ca32791bb1..2fd47a3f4d3 100644 --- a/config/initializers/gollum.rb +++ b/config/initializers/gollum.rb @@ -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 |