Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request streamich#230 from streamich/fix-staged
Browse files Browse the repository at this point in the history
fix: πŸ› move check for git folder to top
  • Loading branch information
rodrigograca31 committed Dec 7, 2020
2 parents d4303ce + cdf142c commit 903188d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ const main = async () => {
try {
const {cliAnswers, cliOptions, passThroughParams} = parseArgs();

let state = null;

if (cliOptions.disableEmoji) {
state = createState({disableEmoji: cliOptions.disableEmoji});
} else {
state = createState();
}

if (cliOptions.dryRun) {
// eslint-disable-next-line no-console
console.log('Running in dry mode.');
Expand Down Expand Up @@ -56,14 +64,6 @@ const main = async () => {
}
}

let state = null;

if (cliOptions.disableEmoji) {
state = createState({disableEmoji: cliOptions.disableEmoji});
} else {
state = createState();
}

if (cliOptions.nonInteractive) {
await runNonInteractiveMode(state, cliAnswers);
} else {
Expand Down

0 comments on commit 903188d

Please sign in to comment.