Browse Source

Simplify code.

mark_story 13 years ago
parent
commit
17ba713651
1 changed files with 1 additions and 4 deletions
  1. 1 4
      lib/Cake/Console/Command/Task/ProjectTask.php

+ 1 - 4
lib/Cake/Console/Command/Task/ProjectTask.php

@@ -303,10 +303,7 @@ class ProjectTask extends AppShell {
 		$contents = $File->read();
 		if (preg_match('/(\$prefix = \'myapp_\';)/', $contents, $match)) {
 			$result = str_replace($match[0], '$prefix = \'' . $app . '_\';', $contents);
-			if ($File->write($result)) {
-				return true;
-			}
-			return false;
+			return $File->write($result);
 		}
 		return false;
 	}