From 9f7489561bdab6b1f176fcd4da8475d14e0b91a0 Mon Sep 17 00:00:00 2001 From: Yash Ladha Date: Wed, 23 Jun 2021 05:49:54 +0530 Subject: [PATCH] fix: remove redundant await while fetching target Removed the redundant await from the block while fetching the target. Since the value of map is of instance `Target` 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 d9c9d29737a1f..f1df577275241 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'