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 264440d commit 58ff472Copy full SHA for 58ff472
src/extension.ts
@@ -32,7 +32,7 @@ function _validateFoundRepos(git: API) {
32
async function _handleRepos(
33
git: API,
34
sourceControl: vscode.SourceControl
35
-): Promise<Repository | undefined> {
+): Promise<Repository | false> {
36
const selectedRepo = git.repositories.find(repository => {
37
const uri = sourceControl.rootUri;
38
if (!uri) {
@@ -44,7 +44,7 @@ async function _handleRepos(
44
return repoPath === uri.path;
45
});
46
47
- return selectedRepo;
+ return selectedRepo ?? false;
48
}
49
50
/**
0 commit comments