Skip to content

Commit

Permalink
fix: remove redundant await while fetching target (#7351)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yashLadha committed Jun 23, 2021
1 parent 4ce4110 commit 083b297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/Browser.ts
Expand Up @@ -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'
Expand Down

0 comments on commit 083b297

Please sign in to comment.