Revert "Avoid index reset error in case of unexistant index"

This reverts commit a121a77774.
This commit is contained in:
Tim Nagel 2014-04-03 08:00:52 +11:00
parent ff95945819
commit e74acb1e4f

View file

@ -109,7 +109,7 @@ class PopulateCommand extends ContainerAwareCommand
*/ */
private function populateIndex(OutputInterface $output, $index, $reset, $options) private function populateIndex(OutputInterface $output, $index, $reset, $options)
{ {
if ($reset && $this->indexManager->getIndex($index)->exists()) { if ($reset) {
$output->writeln(sprintf('<info>Resetting</info> <comment>%s</comment>', $index)); $output->writeln(sprintf('<info>Resetting</info> <comment>%s</comment>', $index));
$this->resetter->resetIndex($index); $this->resetter->resetIndex($index);
} }