Fix RemoveAllCommand return type

The command should always return an integer as exit code.
The called method does not return anything, resulting in null to be
returned.
This commit is contained in:
Daniel Siepmann 2021-09-06 16:32:43 +02:00
parent d0cb951550
commit 018fdc697e

View file

@ -22,8 +22,10 @@ class RemoveAllCommand extends Command
{
Bootstrap::initializeBackendAuthentication();
return GeneralUtility::makeInstance(ObjectManager::class)
GeneralUtility::makeInstance(ObjectManager::class)
->get(CleanupService::class)
->deleteAllData();
return 0;
}
}