Skip to content

Commit bac1a84

Browse files
committed
cs fix
1 parent b861820 commit bac1a84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Jobs/UpdateSite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function handle(): void
7575
$this->preUpdateCode = $this->site->getFrontendStatus();
7676
} catch (RequestException $e) {
7777
// Catch request exceptions - they should not stop the process
78-
$this->preUpdateCode = $e->getResponse()->getStatusCode();
78+
$this->preUpdateCode = $e->getResponse()?->getStatusCode();
7979
}
8080

8181
// Let site fetch available updates
@@ -122,7 +122,7 @@ public function handle(): void
122122
$afterUpdateCode = $this->site->getFrontendStatus();
123123
} catch (RequestException $e) {
124124
// Again, do not fetch exceptions
125-
$afterUpdateCode = $e->getResponse()->getStatusCode();
125+
$afterUpdateCode = $e->getResponse()?->getStatusCode();
126126
}
127127

128128
if ($afterUpdateCode !== $this->preUpdateCode) {

0 commit comments

Comments
 (0)