Skip to content

Commit e93099b

Browse files
fix build
1 parent e485a8b commit e93099b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/xcodebuild.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@ export class XcodeBuild {
464464
(noSessionProxy as any).timeout = 1000;
465465
try {
466466
currentStatus = (await noSessionProxy.command('/status', 'GET')) as StringRecord;
467-
if (currentStatus && currentStatus.ios && (currentStatus.ios as any).ip) {
468-
this.agentUrl = (currentStatus.ios as any).ip;
467+
if (currentStatus?.ios?.ip) {
468+
this.agentUrl = currentStatus.ios.ip as string | undefined;
469469
}
470470
this.log.debug(`WebDriverAgent information:`);
471471
this.log.debug(JSON.stringify(currentStatus, null, 2));

0 commit comments

Comments
 (0)