Skip to content

Commit 4c1f8b5

Browse files
author
bryanadamloh97
committed
Uncomment code
1 parent f1de052 commit 4c1f8b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Drivers/ShorteStDriverShortener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public function __construct(ClientInterface $client, $token)
4040
*/
4141
public function shortenAsync($url, array $options = [])
4242
{
43-
/*if (!Str::startsWith($url, ['http://', 'https://']))
44-
throw new ShortUrlException('The given URL must begin with http/https');*/
43+
if (!Str::startsWith($url, ['http://', 'https://']))
44+
throw new ShortUrlException('The given URL must begin with http/https');
4545

4646
$options = array_merge_recursive(Arr::add($this->object, 'json.urlToShorten', $url), ['json' => $options]);
4747
$request = new Request('PUT', '/v1/data/url');

0 commit comments

Comments
 (0)