Skip to content

Commit 33649f6

Browse files
authored
Update utils.js
1 parent 2039f3d commit 33649f6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/utils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ function cloneGitRepo(command, projectName) {
4141
.then(function () {
4242
// remove git files
4343
if (process.platform === "win32") {
44-
rimraf(`.\\${projectName}\\.git`, () => {});
45-
rimraf(`.\\${projectName}\\.github`, () => {});
44+
rimraf(`.\\${projectName}\\.git`);
45+
rimraf(`.\\${projectName}\\.github`);
4646
} else {
47-
rimraf(`./${projectName}/.git`, () => {});
48-
rimraf(`./${projectName}/.github`, () => {});
47+
rimraf(`./${projectName}/.git`);
48+
rimraf(`./${projectName}/.github`);
4949
}
5050
const throbber = ora(MESSAGES.install).start();
5151
exec(`npm install`, { cwd: projectName }, (error, stdout, stderr) => {

0 commit comments

Comments
 (0)