Remove all use of spread

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2023-01-12 15:42:46 -08:00
parent 5a91c89730
commit b1637ad857

View File

@ -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);
});