Permalink
Browse files

Removing un-necessary if()

  • Loading branch information...
markstory committed Jul 29, 2009
1 parent 189480e commit ad3d34c23973aa1e4bdf8cd8e6f0544e8a46f10f
Showing with 1 addition and 5 deletions.
  1. +1 −5 cake/console/libs/tasks/controller.php
@@ -80,11 +80,7 @@ function execute() {
}
$controller = Inflector::camelize($this->args[0]);
- $actions = null;
- if (!isset($this->args[1])) {
- $actions = 'scaffold';
- }
-
+ $actions = 'scaffold';
if (!empty($this->args[1]) && ($this->args[1] == 'public' || $this->args[1] == 'scaffold')) {
$this->out(__('Baking basic crud methods for ', true) . $controller);

0 comments on commit ad3d34c

Please sign in to comment.