Skip to content
Browse files

[Model] [Acl] removed useless else clause in Entry::toAclEntry().

  • Loading branch information...
1 parent 412a3cf commit 070ba6ba50de59a1e2bc896712c0e2cfcf28596e @hhamon hhamon committed Apr 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Model/Acl/Entry.php
View
4 Model/Acl/Entry.php
@@ -73,8 +73,8 @@ static public function toAclEntry(Entry $modelEntry, AclInterface $acl)
{
if (null === $modelEntry->getFieldName()) {
return new AclEntry($modelEntry, $acl);
- } else {
- return new AclFieldEntry($modelEntry, $acl);
}
+
+ return new AclFieldEntry($modelEntry, $acl);
}
}

0 comments on commit 070ba6b

Please sign in to comment.
Something went wrong with that request. Please try again.