Skip to content

Commit

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

βœ… Closes: #207
  • Loading branch information
rodrigograca31 authored 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

1 comment on commit eb9eb06

@streamich
Copy link
Owner

Choose a reason for hiding this comment

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

Build version: 4.7.2-master.1023 🀞 master on Travis πŸŽ‰

Please sign in to comment.