Skip to content

Commit 9020699

Browse files
committed
refactor: update extension.ts
1 parent 02aa241 commit 9020699

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ function _validateFoundRepos(git: API) {
3737
async function _handleRepos(git: API, sourceControl: any) {
3838
// FIXME: Unfortunately this seems to only pick up the first repo and not find
3939
// second, etc.
40-
const selectedRepository = git.repositories.find(repository => {
40+
const selectedRepo = git.repositories.find(repository => {
4141
const uri = sourceControl._rootUri;
4242
if (!uri) {
4343
console.warn("_rootUri not set");
4444
}
4545
return repository.rootUri.path === uri.path;
4646
});
4747

48-
if (selectedRepository) {
49-
await makeAndFillCommitMsg(selectedRepository);
48+
if (selectedRepo) {
49+
await makeAndFillCommitMsg(selectedRepo);
5050
} else {
5151
vscode.window.showErrorMessage("No repos found");
5252
}

0 commit comments

Comments
 (0)