Fix offense to the LineBreakAfterGuardClauses cop

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2017-11-20 12:24:49 +01:00
parent 202ab62874
commit 0531ccc6fd
No known key found for this signature in database
GPG Key ID: 46DF07E5CD9E96AB
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