Skip to content

Commit 884c0bc

Browse files
authored
fix: calls this.opts for createBaseADB
1 parent 74480ae commit 884c0bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/commands/device/common.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ export async function getDeviceInfoFromCaps() {
130130
* @property {(AndroidDriverOpts & {emPort?: number})?} [opts=null]
131131
* @returns {Promise<import('appium-adb').ADB>}
132132
*/
133-
export async function createADB(opts = null) {
133+
export async function createADB() {
134134
// @ts-expect-error do not put arbitrary properties on opts
135-
const {udid, emPort} = opts ?? {};
136-
const adb = await createBaseADB(opts);
135+
const {udid, emPort} = this.opts ?? {};
136+
const adb = await createBaseADB(this.opts);
137137
adb.setDeviceId(udid ?? '');
138138
if (emPort) {
139139
adb.setEmulatorPort(emPort);

0 commit comments

Comments
 (0)