chore: 💚 fix psalm
This commit is contained in:
parent
42bfdb530b
commit
79c6fbcc16
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user