mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-04-25 02:15:47 +02:00
fix style
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
This commit is contained in:
parent
8cdcde2e56
commit
7cdf3c83e8
@ -10,12 +10,12 @@ class RemoveUnusedJob implements IRepairStep
|
||||
{
|
||||
|
||||
/**
|
||||
* @var LoggerInterface
|
||||
* @var LoggerInterface
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
/**
|
||||
* @var IJobList
|
||||
* @var IJobList
|
||||
*/
|
||||
protected $joblist;
|
||||
|
||||
@ -39,13 +39,12 @@ class RemoveUnusedJob implements IRepairStep
|
||||
*/
|
||||
public function run(IOutput $output)
|
||||
{
|
||||
if($this->joblist->has("OCA\News\Cron\Updater", null)){
|
||||
if ($this->joblist->has("OCA\News\Cron\Updater", null)) {
|
||||
$output->info("Job exists, attempting to remove");
|
||||
$this->joblist->remove("OCA\News\Cron\Updater");
|
||||
$output->info("Job removed");
|
||||
} else {
|
||||
$output->info("Job does not exist, all good");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user