Remove superfluous checks for empty realnames

This commit is contained in:
jrenslin committed 2022-03-31 14:38:02 +02:00
1 parent 65aaea4097
commit c362aa1283
1 file changed
+1 -1
+1 -1
View File
@@ -44,7 +44,7 @@ public static function file_get_contents(string $filename):string {
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;