This made me realize `resolver.resolve()` needs an early return in case the promise is already resolved.