« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/crawl-http.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crawl-http.js b/src/crawl-http.js
index e776b9c..7308f3f 100755
--- a/src/crawl-http.js
+++ b/src/crawl-http.js
@@ -77,7 +77,7 @@ function crawl(absURL, opts = {}, internals = {}) {
             verboseLog("[Dir] " + linkURL)
 
             return crawl(linkURL, opts, Object.assign({}, internals))
-              .then(items => ({name, items}))
+              .then(({ items }) => ({name, items}))
           } else {
             // It's a file!