Skip to content
This repository
Browse code

Simplify code.

  • Loading branch information...
commit 17ba71365159124383bdd18654ee3add261bc419 1 parent 0441c9f
Mark Story authored August 24, 2012
5  lib/Cake/Console/Command/Task/ProjectTask.php
@@ -303,10 +303,7 @@ public function cachePrefix($dir) {
303 303
 		$contents = $File->read();
304 304
 		if (preg_match('/(\$prefix = \'myapp_\';)/', $contents, $match)) {
305 305
 			$result = str_replace($match[0], '$prefix = \'' . $app . '_\';', $contents);
306  
-			if ($File->write($result)) {
307  
-				return true;
308  
-			}
309  
-			return false;
  306
+			return $File->write($result);
310 307
 		}
311 308
 		return false;
312 309
 	}

0 notes on commit 17ba713

Please sign in to comment.
Something went wrong with that request. Please try again.