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