Closed marvinhagemeister closed 3 years ago
Promise objects don't need to be wrapped inside another Promise object. They can be returned directly instead. This removes the need for empty .then() or .catch() callbacks.
Promise
.then()
.catch()
Oh, I didn't realize that. Thank you for the improvement!
Promise
objects don't need to be wrapped inside anotherPromise
object. They can be returned directly instead. This removes the need for empty.then()
or.catch()
callbacks.