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

Commit

Permalink
fix: πŸ› disable-emoji config being overwritten by default (streamich#211)
Browse files Browse the repository at this point in the history
More info: streamich#207

βœ… Closes: streamich#207
  • Loading branch information
rodrigograca31 committed Nov 11, 2020
1 parent 815c424 commit eb9eb06
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ const main = async () => {
}
}

const state = createState({disableEmoji: cliOptions.disableEmoji});
let state = null;

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

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

0 comments on commit eb9eb06

Please sign in to comment.