Skip to content

Commit

Permalink
fix: Adb object instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Jan 25, 2024
1 parent b359f87 commit 9dfca27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/commands/device/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9dfca27

Please sign in to comment.