Skip to content

Commit 460542a

Browse files
committed
refactor
1 parent f769b05 commit 460542a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/extension.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ function _validateFoundRepos(git: API) {
1515

1616
if (!git) {
1717
msg = "Unable to load Git Extension";
18-
}
19-
if (git.repositories.length === 0) {
18+
} else if (git.repositories.length === 0) {
2019
msg =
21-
"No repos found. Please open a repo or run `git init` then try this extension again.";
20+
"No repos found. Please open a repo or run `git init` then try again.";
2221
}
2322

2423
if (msg) {

0 commit comments

Comments
 (0)