Skip to content

Commit ad58cc5

Browse files
committed
chore: lint
1 parent d5f8699 commit ad58cc5

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

cli/src/ios/common.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,17 +125,18 @@ export function getMajorMinoriOSVersion(config: Config): string {
125125
// Extract until semicolon or newline (typical end of value in pbxproj)
126126
const endIndex = pbx.indexOf(';', valueStart);
127127
const newlineIndex = pbx.indexOf('\n', valueStart);
128-
const actualEnd = endIndex !== -1 && newlineIndex !== -1
129-
? Math.min(endIndex, newlineIndex)
130-
: endIndex !== -1
131-
? endIndex
132-
: newlineIndex !== -1
133-
? newlineIndex
134-
: pbx.length;
128+
const actualEnd =
129+
endIndex !== -1 && newlineIndex !== -1
130+
? Math.min(endIndex, newlineIndex)
131+
: endIndex !== -1
132+
? endIndex
133+
: newlineIndex !== -1
134+
? newlineIndex
135+
: pbx.length;
135136
let iosVersion = pbx.substring(valueStart, actualEnd).trim();
136137
// Remove trailing .0 if present
137138
if (iosVersion.endsWith('.0')) {
138139
iosVersion = iosVersion.slice(0, -2);
139140
}
140141
return iosVersion;
141-
}
142+
}

0 commit comments

Comments
 (0)