Skip to content

Commit

Permalink
Fix no-ansi check in analyze command
Browse files Browse the repository at this point in the history
  • Loading branch information
tgalopin committed May 30, 2017
1 parent d6b0edb commit f38b0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cli/Command/AnalyzeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

if ('txt' === $input->getOption('format')) {
if ($input->getOption('no-ansi')) {
if (!$output->isDecorated()) {
if ($noAnsiStatus !== $analysis->getStatusMessage()) {
$output->writeln($noAnsiStatus = $analysis->getStatusMessage());
}
Expand Down

0 comments on commit f38b0be

Please sign in to comment.