No error code when app already enabled/disabled

This commit is contained in:
Vincent Petry 2015-08-19 10:26:50 +02:00
parent 0b37004808
commit 6c8c8a328a
2 changed files with 0 additions and 2 deletions

View File

@ -51,7 +51,6 @@ class Disable extends Command {
}
} else {
$output->writeln('No such app enabled: ' . $appId);
return 1;
}
}
}

View File

@ -43,7 +43,6 @@ class Enable extends Command {
$appId = $input->getArgument('app-id');
if (\OC_App::isEnabled($appId)) {
$output->writeln($appId . ' is already enabled');
return 2;
} else if (!\OC_App::getAppPath($appId)) {
$output->writeln($appId . ' not found');
return 1;