Skip to content

Commit

Permalink
Merge pull request #24 from mahanmp/patch-1
Browse files Browse the repository at this point in the history
remove unnecessary else statement
  • Loading branch information
colinmollenhour authored Mar 2, 2018
2 parents 75c6f9c + 97f61ec commit 3146110
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions File.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,11 @@ protected function _path($id, $parts = false)
$root .= $prefix . '--' . substr(md5($id), -$this->_options['hashed_directory_level']) . DIRECTORY_SEPARATOR;
$partsArray[] = $root;
}
if ($parts) {
return $partsArray;
} else {
return $root;
if ($parts){
return $partsArray;
}
return $root;

}

/**
Expand Down

0 comments on commit 3146110

Please sign in to comment.