Remove superfluous checks for empty realnames
This commit is contained in:
parent
65aaea4097
commit
c362aa1283
|
@ -44,7 +44,7 @@ final class MD_STD {
|
||||||
public static function realpath(string $path):string {
|
public static function realpath(string $path):string {
|
||||||
|
|
||||||
$output = \realpath($path);
|
$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.");
|
throw new MDFileDoesNotExist("The file {$path} does not exist or is not readable.");
|
||||||
}
|
}
|
||||||
return $output;
|
return $output;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user