Skip to content

Commit 91c0661

Browse files
committed
fix: if nodes has string, close #68
1 parent 8fd2616 commit 91c0661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function walk (opts, nodes) {
161161
let skip
162162

163163
// loop through each node in the tree
164-
return nodes.reduce((m, node, i) => {
164+
return [].concat(nodes).reduce((m, node, i) => {
165165
// if we're skipping this node, return immediately
166166
if (skip) { skip--; return m }
167167

0 commit comments

Comments
 (0)