refactor: remove extra variable on onTargetInfoChanged (#11249)

This commit is contained in:
Darío Kondratiuk 2023-10-25 13:15:01 -03:00 committed by GitHub
parent ab15aa5af8
commit 9db4a94617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,9 +284,6 @@ export class ChromeTargetManager
target._initializedDeferred.value() === InitializationStatus.SUCCESS;
if (isPageTargetBecomingPrimary(target, event.targetInfo)) {
const target = this.#attachedTargetsByTargetId.get(
event.targetInfo.targetId
);
const session = target?._session();
assert(
session,