Skip to content

Commit

Permalink
Remove unnecessary condition
Browse files Browse the repository at this point in the history
The check ```!empty($this->item)``` is unneeded at this point. It is possible to join the statements of if conditions at the lines 72 and 77.
  • Loading branch information
nvyush committed Jun 1, 2017
1 parent 9ba22b7 commit 5d75fc4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions components/com_content/views/form/view.html.php
Expand Up @@ -72,10 +72,6 @@ public function display($tpl = null)
if (!empty($this->item->id))
{
$this->item->tags->getItemTags('com_content.article', $this->item->id);
}

if (!empty($this->item) && isset($this->item->id))
{
$this->item->images = json_decode($this->item->images);
$this->item->urls = json_decode($this->item->urls);

Expand Down

0 comments on commit 5d75fc4

Please sign in to comment.