Skip to content

Commit

Permalink
#1112 - avoiding useless assignments/splitted return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Aug 18, 2014
1 parent 7865de9 commit 3fed769
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ public function getRepository(EntityManagerInterface $entityManager, $entityName
return $this->repositoryList[$className];
}

$repository = $this->createRepository($entityManager, $entityName);

$this->repositoryList[$className] = $repository;

return $repository;
return $this->repositoryList[$className] = $this->createRepository($entityManager, $entityName);
}

/**
Expand Down

0 comments on commit 3fed769

Please sign in to comment.