It was returning inside the callback of `new Promise(callback)` which doesn't mean anything.