Skip to content

Commit 7a312d0

Browse files
committed
Check for null on webhook url
Signed-off-by: snipe <[email protected]>
1 parent e1156be commit 7a312d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Models/Setting.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public static function fileSizeConvert($bytes): string
247247
*
248248
* @return string
249249
*/
250-
public function routeNotificationForSlack(): string
250+
public function routeNotificationForSlack(): ?string
251251
{
252252
// At this point the endpoint is the same for everything.
253253
// In the future this may want to be adapted for individual notifications.
@@ -259,7 +259,7 @@ public function routeNotificationForSlack(): string
259259
*
260260
* @return string
261261
*/
262-
public function routeNotificationForMail(): string
262+
public function routeNotificationForMail(): ?string
263263
{
264264
// At this point the endpoint is the same for everything.
265265
// In the future this may want to be adapted for individual notifications.

0 commit comments

Comments
 (0)