Skip to content

Commit 6a06a48

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

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ public function relativeLink(string $destination): string
9797
*/
9898
public function mediaLink(string $destination): string
9999
{
100-
if (false && ! file_exists($sourcePath = "{$this->kernel->getMediaDirectory()}/$destination")) {
101-
throw new FileNotFoundException($sourcePath);
102-
}
103-
104100
return $this->relativeLink("{$this->kernel->getMediaOutputDirectory()}/$destination");
105101
}
106102

0 commit comments

Comments
 (0)