Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Jan 26, 2023
1 parent 5c64324 commit 5e3d538
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/create-astro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,8 @@ export async function main() {
// Add a check to see if there is already a .git directory and skip 'git init' if yes (with msg to output)
const gitDir = './.git';
if (fs.existsSync(gitDir)) {
ora().info(
dim('A .git directory already exists. Skipping creating a new Git repository.')
);
} else {
ora().info(dim('A .git directory already exists. Skipping creating a new Git repository.'));
} else {
await execaCommand('git init', { cwd });
ora().succeed('Git repository created!');
}
Expand Down

1 comment on commit 5e3d538

@ZermattChris
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning up my first Astro attempt :-)

Please sign in to comment.