Skip to content

Commit ff3b9e9

Browse files
Remove Promise.all call
1 parent d384790 commit ff3b9e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ const searchFullyDownloadedFiles = torrents => Promise.resolve()
4646
.then(stats => _.assign({ name: `${index}` }, stats))
4747
.catch(() => null)
4848
))
49-
.then(promises => Promise.all(promises).filter(result => !!result))
49+
.then(runAll)
50+
.filter(notNull)
5051
.then(fileStats => _.assign({ fileStats }, torrent))
5152
))
5253
.then(runAll)

0 commit comments

Comments
 (0)