Removed unused namespaces

This commit is contained in:
Kalle Fagerberg 2022-08-28 15:36:00 +02:00 committed by thrillfall
parent 4409b11d60
commit 0e661a439f
3 changed files with 2 additions and 6 deletions

View File

@ -12,9 +12,7 @@ use OCA\GPodderSync\Db\SubscriptionChange\SubscriptionChangeRepository;
use OCP\AppFramework\Controller; use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\JSONResponse; use OCP\AppFramework\Http\JSONResponse;
use OCP\IL10N;
use OCP\IRequest; use OCP\IRequest;
use OCP\Settings\ISettings;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
@ -85,7 +83,7 @@ class PersonalSettingsController extends Controller {
try { try {
$podcast = $this->podcastCacheService->getCachedOrFetchPodcastData($url); $podcast = $this->podcastCacheService->getCachedOrFetchPodcastData($url);
$sub['podcast'] = $podcast; $sub['podcast'] = $podcast;
} catch (Exception $e) { } catch (\Exception $e) {
$sub['podcast'] = null; $sub['podcast'] = null;
$this->logger->error("Failed to get podcast data.", [ $this->logger->error("Failed to get podcast data.", [
'exception' => $e, 'exception' => $e,

View File

@ -4,8 +4,6 @@ declare(strict_types=1);
namespace OCA\GPodderSync\Settings; namespace OCA\GPodderSync\Settings;
use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
use OCP\IL10N;
use OCP\Settings\ISettings; use OCP\Settings\ISettings;
class GPodderSyncPersonal implements ISettings { class GPodderSyncPersonal implements ISettings {