From 9dfca27a813a4d5a19ceb100bafd67cc25e214eb Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Thu, 25 Jan 2024 13:09:23 +0100 Subject: [PATCH] fix: Adb object instantiation --- lib/commands/device/common.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/commands/device/common.js b/lib/commands/device/common.js index 8c9dc974..48c9f98b 100644 --- a/lib/commands/device/common.js +++ b/lib/commands/device/common.js @@ -19,8 +19,7 @@ export async function getDeviceInfoFromCaps() { // on instantiating on earlier (at this point, we have no udid) // we can only use this ADB object for commands that would not be confused // if multiple devices are connected - /** @type {import('appium-adb').ADB} */ - const adb = this.adb ?? (await createBaseADB(this.opts)); + const adb = await createBaseADB(this.opts); let udid = this.opts.udid; let emPort;