Skip to content

Commit

Permalink
fix: calls this.opts for createBaseADB
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Jan 26, 2024
1 parent 74480ae commit 884c0bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/commands/device/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ export async function getDeviceInfoFromCaps() {
* @property {(AndroidDriverOpts & {emPort?: number})?} [opts=null]
* @returns {Promise<import('appium-adb').ADB>}
*/
export async function createADB(opts = null) {
export async function createADB() {
// @ts-expect-error do not put arbitrary properties on opts
const {udid, emPort} = opts ?? {};
const adb = await createBaseADB(opts);
const {udid, emPort} = this.opts ?? {};
const adb = await createBaseADB(this.opts);
adb.setDeviceId(udid ?? '');
if (emPort) {
adb.setEmulatorPort(emPort);
Expand Down

0 comments on commit 884c0bc

Please sign in to comment.