Remove superfluous checks for empty realnames

This commit is contained in:
Joshua Ramon Enslin 2022-03-31 14:38:02 +02:00
parent 65aaea4097
commit c362aa1283
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -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;