Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit cbb202d

Browse files
authored
Apply suggestion from @OskarStark
1 parent f166e00 commit cbb202d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Platform/Bridge/Albert/PlatformFactory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ public static function create(
2222
if (!str_starts_with($baseUrl, 'https://')) {
2323
throw new InvalidArgumentException('The Albert URL must start with "https://".');
2424
}
25-
2625
if (str_ends_with($baseUrl, '/')) {
2726
throw new InvalidArgumentException('The Albert URL must not end with a trailing slash.');
2827
}
29-
3028
if (!preg_match('/\/v\d+$/', $baseUrl)) {
3129
throw new InvalidArgumentException('The Albert URL must include an API version (e.g., /v1, /v2).');
3230
}

0 commit comments

Comments
 (0)