Skip to content

Commit ac875f7

Browse files
committed
Remove unreachable code path
1 parent 8ae2156 commit ac875f7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/framework/src/Foundation/Kernel/Hyperlinks.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@
88
use BadMethodCallException;
99
use Hyde\Support\Models\Route;
1010
use Hyde\Foundation\HydeKernel;
11-
use Hyde\Framework\Exceptions\FileNotFoundException;
1211
use Illuminate\Support\Str;
1312

1413
use function str_ends_with;
1514
use function str_starts_with;
1615
use function substr_count;
17-
use function file_exists;
1816
use function str_replace;
1917
use function str_repeat;
2018
use function substr;
@@ -97,10 +95,6 @@ public function relativeLink(string $destination): string
9795
*/
9896
public function mediaLink(string $destination): string
9997
{
100-
if (false && ! file_exists($sourcePath = "{$this->kernel->getMediaDirectory()}/$destination")) {
101-
throw new FileNotFoundException($sourcePath);
102-
}
103-
10498
return $this->relativeLink("{$this->kernel->getMediaOutputDirectory()}/$destination");
10599
}
106100

0 commit comments

Comments
 (0)