Remove obsolete no-interaction check

The following `askConfirmation` call will automatically return the
default value (`false`) if it's in non-interactive mode.
This commit is contained in:
venyii 2016-11-11 11:20:21 +01:00
parent 5e1bb1632e
commit 52e7af6c36
No known key found for this signature in database
GPG key ID: 9513893490779576

View file

@ -41,10 +41,6 @@ EOT
{
$output->writeln(sprintf('<error>Warning! This will erase your database.</error> Your current environment is <info>%s</info>.', $this->getEnvironment()));
if ($input->getOption('no-interaction')) {
return 0;
}
if (!$this->getHelperSet()->get('dialog')->askConfirmation($output, '<question>Load sample data? (y/N)</question> ', false)) {
return 0;
}