Skip to content

Commit 14fa1e0

Browse files
committed
remove redundant lines
1 parent 261f859 commit 14fa1e0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/commands/content-size.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ export default {
5757
* @this {XCUITestDriver}
5858
*/
5959
async mobileGetContentSize() {
60-
const simulator = assertSimulator(this);
61-
return /** @type {ContentSize} */ (await simulator.getContentSize());
60+
return /** @type {ContentSize} */ (await (assertSimulator(this)).getContentSize());
6261
},
6362
};
6463

lib/commands/increase-contrast.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ export default {
3939
* @this {XCUITestDriver}
4040
*/
4141
async mobileGetIncreaseContrast() {
42-
const simulator = assertSimulator(this);
43-
return /** @type {IncreaseContrast} */ (await simulator.getIncreaseContrast());
42+
return /** @type {IncreaseContrast} */ (await (assertSimulator(this)).getIncreaseContrast());
4443
},
4544
};
4645

0 commit comments

Comments
 (0)