Skip to content

Commit

Permalink
fix(node): remove optional chaining operator
Browse files Browse the repository at this point in the history
  • Loading branch information
rbardini committed May 15, 2022
1 parent 21187f3 commit 5c893ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/track.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const track = (numbers, options = {}, callback = () => {}) => {
.map(number => new Item(number, objetos.find(({ numero }) => numero === number)))
.forEach(item => {
items.push(item)
options.onProgress?.(++tracked / count, item)
if (options.onProgress) options.onProgress(++tracked / count, item)
})
}))
.then(() => callback(null, items, failures))
Expand Down

0 comments on commit 5c893ef

Please sign in to comment.