Remove all use of spread
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
5a91c89730
commit
b1637ad857
@ -71,7 +71,8 @@ function scanDir(parent, path) {
|
||||
let filepath = path + file;
|
||||
return stat(filepath).then(function(stats) {
|
||||
if (stats.isDirectory()) {
|
||||
return scanDir(album, filepath + "/").spread(function(_albums, _assets) {
|
||||
return scanDir(album, filepath + "/")
|
||||
.then(([ _albums, _assets ]) => {
|
||||
albums = albums.concat(_albums);
|
||||
assets = assets.concat(_assets);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user