mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/12683] Remove check to avoid index twice (ticket 16755)
PHPBB3-12683
This commit is contained in:
@@ -18,7 +18,6 @@ use phpbb\console\command\command;
|
||||
use phpbb\language\language;
|
||||
use phpbb\log\log;
|
||||
use phpbb\post\post_helper;
|
||||
use phpbb\search\exception\index_empty_exception;
|
||||
use phpbb\search\exception\no_search_backend_found_exception;
|
||||
use phpbb\search\search_backend_factory;
|
||||
use phpbb\search\state_helper;
|
||||
@@ -146,12 +145,6 @@ class delete extends command
|
||||
|
||||
$io->newLine(2);
|
||||
}
|
||||
catch (index_empty_exception $e)
|
||||
{
|
||||
$this->state_helper->clear_state();
|
||||
$io->error($this->language->lang('CLI_SEARCHINDEX_NO_CREATED', $name));
|
||||
return command::FAILURE;
|
||||
}
|
||||
catch (\Exception $e)
|
||||
{
|
||||
$io->error($this->language->lang('CLI_SEARCHINDEX_DELETE_FAILURE', $name));
|
||||
|
Reference in New Issue
Block a user