Remove superfluous checks for empty realnames
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user