Skip to content

Commit

Permalink
Removing un-necessary if()
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 29, 2009
1 parent 189480e commit ad3d34c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cake/console/libs/tasks/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ad3d34c

Please sign in to comment.