Returned a promise for undefined if the if-else block competes, there was no return, and there is no continuation.