1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/12683] Remove check to avoid index twice (ticket 16755)

PHPBB3-12683
This commit is contained in:
rubencm
2021-04-10 17:53:06 +02:00
committed by Ruben Calvo
parent 1cef5f83a0
commit 9a6d42770e
11 changed files with 13 additions and 123 deletions

View File

@@ -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_created_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 create extends command
$io->newLine(2);
}
catch (index_created_exception $e)
{
$this->state_helper->clear_state();
$io->error($this->language->lang('CLI_SEARCHINDEX_ALREADY_CREATED', $name));
return command::FAILURE;
}
catch (\Exception $e)
{
$io->error($this->language->lang('CLI_SEARCHINDEX_CREATE_FAILURE', $name));