lib/etcdist/writer.rb in etcdist-0.0.7 vs lib/etcdist/writer.rb in etcdist-0.0.8

- old
+ new

@@ -63,11 +63,10 @@ result = [] until nodes_to_process_stack.empty? node = nodes_to_process_stack.pop result.push(node.key) - child_dir_nodes = node.children.select(dir) - child_dir_nodes.each { |child_dir_node| nodes_to_process_stack.push(child_dir_node) } + node.children.each { |child_node| nodes_to_process_stack.push(child_node) if child_node.dir } end result end end