Revert "Avoid index reset error in case of unexistant index"
This reverts commit a121a77774
.
This commit is contained in:
parent
ff95945819
commit
e74acb1e4f
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue