Skip to content

Commit 3323ff0

Browse files
Update getBuildSettings.ts
fix lint
1 parent fc45adc commit 3323ff0

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

packages/cli-platform-apple/src/commands/runCommand/getBuildSettings.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,13 @@ export async function getBuildSettings(
3838

3939
// Find all 'app' targets in the build settings
4040
const applicationTargets = settings
41-
.filter(
42-
(setting: any) =>
43-
setting.buildSettings.WRAPPER_EXTENSION ===
44-
'app',
45-
)
41+
.filter((setting: any) => setting.buildSettings.WRAPPER_EXTENSION === 'app')
4642
.map(({target: settingsTarget}: any) => settingsTarget);
4743

4844
if (applicationTargets.length === 0) return null
49-
45+
5046
let selectedTarget = applicationTargets[0];
51-
47+
5248
if (target) {
5349
if (!applicationTargets.includes(target)) {
5450
logger.info(
@@ -60,7 +56,7 @@ export async function getBuildSettings(
6056
selectedTarget = target;
6157
}
6258
}
63-
59+
6460
const targetIndex = applicationTargets.indexOf(selectedTarget);
6561
return settings[targetIndex].buildSettings;
6662
}

0 commit comments

Comments
 (0)