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
*/
public function index(string $url): JSONResponse {
$podcast = null;
if ($this->cacheFactory->isLocalCacheAvailable()) {
try {
$podcast = $this->podcastDataReader->tryGetCachedPodcastData($url);
} catch (\Exception $e) {
$podcast = null;
}
}