1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-10-30 22:33:11 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Update version to 1.43.1 and handle optional chaining for origin URL in getCommitInfo function

This commit is contained in:
sunnylqm
2025-04-07 19:56:17 +08:00
parent 36220a48aa
commit 20010a9ea6
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ export async function getCommitInfo(): Promise<CommitInfo | undefined> {
message: commit.message,
author: commit.author.name || commit.committer.name,
timestamp: String(commit.committer.timestamp),
origin: origin.url,
origin: origin?.url,
};
} catch (error) {
console.error(error);