From 083b297a6741c6b1dd23867f441130655fac8f7d Mon Sep 17 00:00:00 2001 From: Yash Ladha Date: Wed, 23 Jun 2021 11:54:37 +0530 Subject: [PATCH] fix: remove redundant await while fetching target (#7351) This patch removes the redundant `await` from the block while fetching the target. The value in the map is a `Target` instance, which itself is not an async resource. --- src/common/Browser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Browser.ts b/src/common/Browser.ts index d9c9d297..f1df5772 100644 --- a/src/common/Browser.ts +++ b/src/common/Browser.ts @@ -433,7 +433,7 @@ export class Browser extends EventEmitter { url: 'about:blank', browserContextId: contextId || undefined, }); - const target = await this._targets.get(targetId); + const target = this._targets.get(targetId); assert( await target._initializedPromise, 'Failed to create target for page'