chore: 💚 fix psalm

This commit is contained in:
Michel Roux 2024-06-14 19:40:32 +02:00
parent 42bfdb530b
commit 79c6fbcc16

View File

@ -29,11 +29,12 @@ class PodcastController extends Controller
* @NoCSRFRequired * @NoCSRFRequired
*/ */
public function index(string $url): JSONResponse { public function index(string $url): JSONResponse {
$podcast = null;
if ($this->cacheFactory->isLocalCacheAvailable()) { if ($this->cacheFactory->isLocalCacheAvailable()) {
try { try {
$podcast = $this->podcastDataReader->tryGetCachedPodcastData($url); $podcast = $this->podcastDataReader->tryGetCachedPodcastData($url);
} catch (\Exception $e) { } catch (\Exception $e) {
$podcast = null;
} }
} }