Skip to content

Commit

Permalink
Use else instead of additional conditional
Browse files Browse the repository at this point in the history
- per suggestion from @akrabat
  • Loading branch information
weierophinney committed Dec 19, 2012
1 parent b43c876 commit bd5913c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/Zend/Mvc/View/Console/DefaultRenderingStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ public function render(MvcEvent $e)
// Fetch result from primary model
if ($result instanceof ConsoleViewModel) {
$responseText .= $result->getResult();
}
if (!$result instanceof ConsoleViewModel) {
} else {
$responseText .= $result->getVariable(ConsoleViewModel::RESULT);
}

Expand Down

0 comments on commit bd5913c

Please sign in to comment.