We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54924f4 commit c529a37Copy full SHA for c529a37
src/isomorphicGit.ts
@@ -556,8 +556,8 @@ export class IsomorphicGit extends GitManager {
556
await this.wrapFS(git.deleteRemote({ ...this.getRepo(), remote: remoteName }));
557
}
558
559
- async getRemoteUrl(remote: string): Promise<string> {
560
- return (await this.wrapFS(git.listRemotes({ ...this.getRepo() }))).filter((item) => item.remote == remote)[0].url;
+ async getRemoteUrl(remote: string): Promise<string | undefined> {
+ return (await this.wrapFS(git.listRemotes({ ...this.getRepo() }))).filter((item) => item.remote == remote)[0]?.url;
561
562
563
updateBasePath(basePath: string): void {
0 commit comments