« get me outta code hell

Fix HTTP crawler outputting {..., items: {items: [...]}} - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofni@gmail.com>2017-08-03 03:19:59 +0400
committerFlorrie <towerofni@gmail.com>2017-08-03 03:19:59 +0400
commitb94845e008931bfaee56b91db1f892af7a6d339f (patch)
treeca6e40afdaea5b12493fbf236a4aa532bffa11f7
parentbb1a0d08e408f949d3b94206f8b5883a659f4d0d (diff)
Fix HTTP crawler outputting {..., items: {items: [...]}}
-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!