Skip to content

Commit 97f61ec

Browse files
committed
remove unnecessary else statement
I just stumbled upon the code, and this is quite not following the pattern on other functions :)
1 parent 458700f commit 97f61ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

File.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,11 @@ protected function _path($id, $parts = false)
404404
$root .= $prefix . '--' . substr(md5($id), -$this->_options['hashed_directory_level']) . DIRECTORY_SEPARATOR;
405405
$partsArray[] = $root;
406406
}
407-
if ($parts) {
408-
return $partsArray;
409-
} else {
410-
return $root;
407+
if ($parts){
408+
return $partsArray;
411409
}
410+
return $root;
411+
412412
}
413413

414414
/**

0 commit comments

Comments
 (0)