Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Cron
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2019-12-30 17:52:04 +0300
committerdartcafe <github@dartcafe.de>2019-12-30 17:52:04 +0300
commitfdfa85437485458f181241dd9560806e1e256043 (patch)
treef33a637e0a4c0a679e6febf6fbe0ffbb4a9ca87e /lib/Cron
parent6baabe29e69f68397e3f09d6927f2a67ce1dd828 (diff)
eliminating hints
Diffstat (limited to 'lib/Cron')
-rw-r--r--lib/Cron/NotificationCron.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Cron/NotificationCron.php b/lib/Cron/NotificationCron.php
index 1ac9f832..526484df 100644
--- a/lib/Cron/NotificationCron.php
+++ b/lib/Cron/NotificationCron.php
@@ -23,8 +23,10 @@
namespace OCA\Polls\Cron;
+use Exception;
+
use OCP\ILogger;
-use OC\BackgroundJob\TimedJob;
+use OCP\BackgroundJob\TimedJob;
use OCA\Polls\Service\MailService;
@@ -48,13 +50,10 @@ class NotificationCron extends TimedJob {
/**
* run
* @param string $token
- * @return null
*/
protected function run($arguments) {
if ($this->mailService->sendNotifications()) {
$this->logger->debug('Notifications sent');
- } else {
- $this->logger->alert('error while sending notifications');
}
}