Skip to content

Commit a95b9f6

Browse files
committed
Remove 'Promise.all'
1 parent 76b8c6d commit a95b9f6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/utils/web-auth.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ async function webAuth (opener, initialUrl, doneUrl, opts) {
1313
return authResult
1414
})
1515

16-
return Promise.all([openPromise, webAuthCheckPromise]).then(
17-
// pick the auth result and pass it along
18-
([, authResult]) => authResult
19-
)
16+
await openPromise
17+
return await webAuthCheckPromise
2018
}
2119

2220
module.exports = webAuth

0 commit comments

Comments
 (0)