Closed luizhenrique07 closed 5 years ago
try...catch is redundant inside a Promise. If an error is thrown in the executor function, the promise is rejected.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
Thanks for your PR, it's a bit old, but still relevant:
Get around 1000 page views per month on that page: https://simpleanalytics.com/blog.adriaan.io
try...catch is redundant inside a Promise. If an error is thrown in the executor function, the promise is rejected.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise