mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Remove unnecessary sprintf.
This commit is contained in:
parent
6b2876c64d
commit
8e758513c8
1 changed files with 2 additions and 8 deletions
|
|
@ -111,10 +111,7 @@ class ConvertType extends Command {
|
|||
protected function validateInput(InputInterface $input, OutputInterface $output) {
|
||||
$type = $input->getArgument('type');
|
||||
if ($this->connectionFactory->normalizeType($type) === 'sqlite3') {
|
||||
$output->writeln(sprintf(
|
||||
'<error>Converting to SQLite (sqlite3) is currently not supported.</error>',
|
||||
$type
|
||||
));
|
||||
$output->writeln('<error>Converting to SQLite (sqlite3) is currently not supported.</error>');
|
||||
return 1;
|
||||
}
|
||||
if ($type === $this->config->getValue('dbtype', '')) {
|
||||
|
|
@ -129,10 +126,7 @@ class ConvertType extends Command {
|
|||
// to drop sequence triggers when dropping a table, even though
|
||||
// such triggers may not exist. This results in errors like
|
||||
// "ORA-04080: trigger 'OC_STORAGES_AI_PK' does not exist".
|
||||
$output->writeln(sprintf(
|
||||
'<error>The --clear-schema option is not supported when converting to Oracle (oci).</error>',
|
||||
$type
|
||||
));
|
||||
$output->writeln('<error>The --clear-schema option is not supported when converting to Oracle (oci).</error>');
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue