diff options
Diffstat (limited to 'lib/filters/gitlab_kramdown.rb')
-rw-r--r-- | lib/filters/gitlab_kramdown.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/filters/gitlab_kramdown.rb b/lib/filters/gitlab_kramdown.rb index a849f70e..281adfcf 100644 --- a/lib/filters/gitlab_kramdown.rb +++ b/lib/filters/gitlab_kramdown.rb @@ -76,9 +76,7 @@ module Nanoc::Filters elements.each do |e| results.push(e) if type == e.type - unless e.children.empty? - results.concat(find_type_elements(type, e.children)) - end + e.children.empty? unless results.concat(find_type_elements(type, e.children)) end results |