Permalink
Browse files

Removing returns from File::__construct

  • Loading branch information...
1 parent 4012925 commit e595d81102ce285ab66c70d9e0b0cd46edb3d8fe @predominant predominant committed Mar 19, 2010
Showing with 1 addition and 10 deletions.
  1. +1 −10 cake/libs/file.php
View
@@ -102,16 +102,7 @@ function __construct($path, $create = false, $mode = 0755) {
$this->name = basename($path);
}
$this->pwd();
-
- if (!$this->exists()) {
- if ($create === true) {
- if ($this->safe($path) && $this->create() === false) {
- return false;
- }
- } else {
- return false;
- }
- }
+ !$this->exists() && $create && $this->safe($path) && $this->create();
}
/**

0 comments on commit e595d81

Please sign in to comment.