From a95b9f6a8c4fe0827f69686571bef0b1bb6f8b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20M=C3=B8ller=20Ellehauge?= Date: Fri, 1 Jul 2022 10:51:02 +0200 Subject: [PATCH] Remove 'Promise.all' --- lib/utils/web-auth.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/utils/web-auth.js b/lib/utils/web-auth.js index 5c291fabb5fa9..b995998809c43 100644 --- a/lib/utils/web-auth.js +++ b/lib/utils/web-auth.js @@ -13,10 +13,8 @@ async function webAuth (opener, initialUrl, doneUrl, opts) { return authResult }) - return Promise.all([openPromise, webAuthCheckPromise]).then( - // pick the auth result and pass it along - ([, authResult]) => authResult - ) + await openPromise + return await webAuthCheckPromise } module.exports = webAuth