Skip to content

Commit

Permalink
Remove extra calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Jul 29, 2024
1 parent a8173da commit 5d238c3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/mixins/connect.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
pageArrayFromDict,
getPossibleDebuggerAppKeys,
simpleStringify,
} from '../utils';
import events from './events';
import { timing } from '@appium/support';
Expand Down Expand Up @@ -111,19 +110,14 @@ export async function selectApp (currentUrl = null, maxTries = SELECT_APP_RETRIE
return [];
}

const {
appIdKey,
pageDict: pageArray,
} = await this.searchForApp(currentUrl, maxTries, ignoreAboutBlankUrl);
const { appIdKey } = await this.searchForApp(currentUrl, maxTries, ignoreAboutBlankUrl);
if (this.appIdKey !== appIdKey) {
this.log.debug(`Received altered app id, updating from '${this.appIdKey}' to '${appIdKey}'`);
this.appIdKey = appIdKey;
}

logApplicationDictionary.bind(this)();

// translate the dictionary into a useful form, and return to sender
this.log.debug(`Finally selecting app ${this.appIdKey}: ${simpleStringify(pageArray)}`);
this.log.debug(`Finally selecting app ${this.appIdKey}`);

/** @type {Page[]} */
const fullPageArray = [];
Expand Down

0 comments on commit 5d238c3

Please sign in to comment.