Remove un-needed exception throwing
This commit is contained in:
parent
e1aa814d8c
commit
2c5b0f3ab5
2 changed files with 0 additions and 8 deletions
|
@ -40,10 +40,6 @@ class BookmarkService
|
||||||
$categories = array_get($request, 'category');
|
$categories = array_get($request, 'category');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! isset($url)) {
|
|
||||||
throw new \Exception;
|
|
||||||
}
|
|
||||||
|
|
||||||
$bookmark = Bookmark::create([
|
$bookmark = Bookmark::create([
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
|
|
|
@ -25,10 +25,6 @@ class LikeService
|
||||||
$url = normalize_url(array_get($request, 'like-of'));
|
$url = normalize_url(array_get($request, 'like-of'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! isset($url)) {
|
|
||||||
throw new \Exception();
|
|
||||||
}
|
|
||||||
|
|
||||||
$like = Like::create(['url' => $url]);
|
$like = Like::create(['url' => $url]);
|
||||||
ProcessLike::dispatch($like);
|
ProcessLike::dispatch($like);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue