small cleanup

This commit is contained in:
Boy132 2025-09-05 14:15:00 +02:00
parent ed7fd702c9
commit 3fc4cdaf29

View File

@ -57,7 +57,7 @@ if (!function_exists('join_paths')) {
$paths = array_map(fn (string $path) => trim($path, '/'), $paths);
$paths = array_filter($paths, fn (string $path) => strlen($path) > 0);
if (empty($base) || $base === '/') {
if (empty($base)) {
return implode('/', $paths);
}