Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
- Removed unused if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Jun 20, 2015
1 parent 4f270dd commit b5fa357
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/IPub/Widgets/WidgetsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,7 @@ public function register(Widgets\IFactory $factory, $group = 'default')
$type = $factory::WIDGET_TYPE;

// Check if widget is already registered
if ($this->has($type, $group)) {


// If not, register new widget
} else {
if (!$this->has($type, $group)) {
$this->widgets[$group][$type] = $factory;
}

Expand Down

0 comments on commit b5fa357

Please sign in to comment.