Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
Remove exception check
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Crawford committed Jan 10, 2020
1 parent 867662d commit 3b91b7c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/FaviconExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ public function fetchAndSaveTo(string $path, string $filename = null): string
$favicon = $this->fetchOnly();
$targetPath = $this->getTargetPath($path, $filename);

if (! file_exists($favicon->getContent())) {
throw new FaviconDoesNotExistException(sprintf(
'No favicons named %s exist at path "%s" ',
$this->getUrl(), $targetPath
));
}

if (!Storage::put($targetPath, file_get_contents($favicon->getContent()))) {
throw new FaviconCouldNotBeSavedException(sprintf(
'The favicon of %s could not be saved at path "%s" ',
Expand Down

0 comments on commit 3b91b7c

Please sign in to comment.