Skip to content

Commit

Permalink
set repo name to id if it doesn't exist #499930
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandria.gomez authored and alexandria.gomez committed Dec 11, 2024
1 parent dc03d78 commit 4a9a086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/repository-client/repository-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export class RepositoryClientExInternal {
{}
);
const repo = repos[0];
if (repo.repoId && repo.repoName) {
return { repoId: repo.repoId, repoName: repo.repoName };
if (repo.repoId) {
return { repoId: repo.repoId, repoName: repo.repoName ?? repo.repoId };
} else {
throw new Error('Current repoId undefined.');
}
Expand Down

0 comments on commit 4a9a086

Please sign in to comment.