Skip to content

Commit 31dd666

Browse files
committed
refactor: rename
1 parent 4d3695f commit 31dd666

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/extension.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { getGitExtension } from "./gitExtension";
1212
/**
1313
* Flow for multiple repos in workspace and selecting just one. This is a rare flow.
1414
*/
15-
async function handleRepos(git: API, uri: any) {
15+
async function _handleRepos(git: API, uri: any) {
1616
// FIXME: Unfortunately this seems to only pick up the first repo and not find second etc.
1717
const selectedRepository = git.repositories.find(repository => {
1818
return repository.rootUri.path === uri._rootUri.path;
@@ -28,7 +28,7 @@ async function handleRepos(git: API, uri: any) {
2828
/**
2929
* Flow for a single or zero repos in the workspace.
3030
*/
31-
async function handleRepo(git: API) {
31+
async function _handleRepo(git: API) {
3232
const targetRepo = git.repositories[0];
3333
await makeAndFillCommitMsg(targetRepo);
3434
}
@@ -57,9 +57,9 @@ export function activate(context: vscode.ExtensionContext) {
5757
vscode.commands.executeCommand("workbench.view.scm");
5858

5959
if (uri) {
60-
handleRepos(git, uri);
60+
_handleRepos(git, uri);
6161
} else {
62-
handleRepo(git);
62+
_handleRepo(git);
6363
}
6464
}
6565
);
@@ -68,4 +68,4 @@ export function activate(context: vscode.ExtensionContext) {
6868
}
6969

7070
// eslint-disable-next-line @typescript-eslint/no-empty-function
71-
export function deactivate() {}
71+
export function deactivate() { }

0 commit comments

Comments
 (0)