Commit d6ec2c38 authored by Rémy Coutable's avatar Rémy Coutable Committed by Dmitriy Zaporozhets

Fix offense to the LineBreakAfterGuardClauses cop

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent d94e8b39
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment