Skip to content

Commit 99ee4e8

Browse files
fix typos
1 parent 5d07005 commit 99ee4e8

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57576,7 +57576,7 @@ async function getLastPreReleaseVersionAndBuild(project) {
5757657576
const buildsData = (_b = (_a = preReleaseResponse.data[0].relationships) === null || _a === void 0 ? void 0 : _a.builds) === null || _b === void 0 ? void 0 : _b.data;
5757757577
if (buildsData && buildsData.length > 0) {
5757857578
const lastBuildId = (_d = (_c = buildsData[0]) === null || _c === void 0 ? void 0 : _c.id) !== null && _d !== void 0 ? _d : null;
57579-
if (!lastBuildId) {
57579+
if (lastBuildId) {
5758057580
lastBuild = (_e = preReleaseResponse.included) === null || _e === void 0 ? void 0 : _e.find(i => i.type == 'builds' && i.id == lastBuildId);
5758157581
}
5758257582
}
@@ -60696,7 +60696,7 @@ const main = async () => {
6069660696
}
6069760697
xcodeVersionString = xcodeVersionMatch.groups.version;
6069860698
if (!xcodeVersionString) {
60699-
throw new Error('Failed to prase Xcode version!');
60699+
throw new Error('Failed to parse Xcode version!');
6070060700
}
6070160701
const credential = await (0, AppleCredential_1.ImportCredentials)();
6070260702
let projectRef = await (0, xcode_1.GetProjectDetails)(credential, semver.coerce(xcodeVersionString));

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AppStoreConnectClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ async function getLastPreReleaseVersionAndBuild(project: XcodeProject): Promise<
124124
const buildsData = preReleaseResponse.data[0].relationships?.builds?.data;
125125
if (buildsData && buildsData.length > 0) {
126126
const lastBuildId = buildsData[0]?.id ?? null;
127-
if (!lastBuildId) {
127+
if (lastBuildId) {
128128
lastBuild = preReleaseResponse.included?.find(i => i.type == 'builds' && i.id == lastBuildId) as Build;
129129
}
130130
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const main = async () => {
3838
}
3939
xcodeVersionString = xcodeVersionMatch.groups.version;
4040
if (!xcodeVersionString) {
41-
throw new Error('Failed to prase Xcode version!');
41+
throw new Error('Failed to parse Xcode version!');
4242
}
4343
const credential = await ImportCredentials();
4444
let projectRef = await GetProjectDetails(credential, semver.coerce(xcodeVersionString));

0 commit comments

Comments
 (0)