Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/filters/gitlab_kramdown.rb')
-rw-r--r--lib/filters/gitlab_kramdown.rb4
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