Skip to content

Commit bab679a

Browse files
committed
4992: Cleanup
1 parent 9c56681 commit bab679a

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

public/fixture/resources.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/InteractiveSlide/InstantBook.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ function (CacheItemInterface $item) use ($entry) {
232232
$this->interactiveSlideCache->get(self::CACHE_KEY_RESOURCES, fn () => $watchedResources);
233233

234234
return $result;
235-
} catch (InteractiveSlideException) {
235+
} catch (\Exception) {
236236
return [
237237
'resource' => $resource,
238238
'from' => $startFormatted,
@@ -368,10 +368,13 @@ function (CacheItemInterface $item) use ($now): \DateTime {
368368

369369
$status = $response->getStatusCode();
370370

371-
return ['status' => $status, 'interval' => [
372-
'from' => $start->format('c'),
373-
'to' => $startPlusDuration->format('c'),
374-
]];
371+
return [
372+
'status' => $status,
373+
'interval' => [
374+
'from' => $start->format('c'),
375+
'to' => $startPlusDuration->format('c'),
376+
],
377+
];
375378
}
376379

377380
/**

0 commit comments

Comments
 (0)