Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
* Fixes node 13 and lower optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
d1dee committed Mar 19, 2022
1 parent c0bc9e9 commit 81b98b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torrent/COMBO.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ async function combo(query, page) {
new Promise((resolve, _) => resolve(torrentProject(query, page)))
])])
.then((comboResult) => {
comboTorrent = (comboResult.filter((element) => element.status === 'fulfilled'
&& element.value?.length > 0)).map((element) => {
comboTorrent = (comboResult.filter((element) =>
element.status === 'fulfilled' && element.value && element.value.length > 0)).map((element) => {
return element.value
})
})
Expand Down

0 comments on commit 81b98b4

Please sign in to comment.