Skip to content

Commit

Permalink
hot-fix: Fix error message (#5)
Browse files Browse the repository at this point in the history
* fix: fix alert drop

* chore: update version
  • Loading branch information
ygorazambuja committed Feb 18, 2022
1 parent 7168af1 commit f8e6121
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "git",
"url": "https://github.com/ygorazambuja/VuexStoreGenerator"
},
"version": "0.1.1",
"version": "0.1.2",
"engines": {
"vscode": "^1.62.0"
},
Expand Down
8 changes: 3 additions & 5 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ async function handleCreateStoreWithMutationTypes({ path }: { path: string }) {
}

async function handleCreateTestDirectory({ path }: { path: string }) {
if (path) {
createStoreTest(path);
}

return window.showErrorMessage("Something went wrong!");
return path
? createStoreTest(path)
: window.showErrorMessage("Something went wrong!");
}

export function deactivate() {}

0 comments on commit f8e6121

Please sign in to comment.