From c362aa128337837ab2930526d154eca4900a2dea Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Thu, 31 Mar 2022 14:38:02 +0200 Subject: [PATCH] Remove superfluous checks for empty realnames --- src/MD_STD.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MD_STD.php b/src/MD_STD.php index d81ea69..a12caab 100644 --- a/src/MD_STD.php +++ b/src/MD_STD.php @@ -44,7 +44,7 @@ final class MD_STD { public static function realpath(string $path):string { $output = \realpath($path); - if (!\is_string($output) || empty($output)) { + if (!\is_string($output)) { throw new MDFileDoesNotExist("The file {$path} does not exist or is not readable."); } return $output;