marksitko / vue-sanctum

MIT License
11 stars 1 forks source link

Flatten Promise execution flow #1

Closed marvinhagemeister closed 3 years ago

marvinhagemeister commented 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.

marksitko commented 3 years ago

Oh, I didn't realize that. Thank you for the improvement!