Skip to content

Commit

Permalink
refactor: useless refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hschoenenberger committed Jan 3, 2025
1 parent 2914b52 commit 7e60abd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions ps_accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,7 @@ public function getServiceContainer()
*/
public function getService($serviceName)
{
try {
return $this->getServiceContainer()->getService($serviceName);
} catch (\PrestaShop\Module\PsAccounts\Vendor\PrestaShopCorp\LightweightContainer\ServiceContainer\Exception\ServiceNotFoundException $e) {
if (class_exists('\Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException')) {
throw new \Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException($serviceName);
}
throw $e;
}
return $this->getServiceContainer()->getService($serviceName);
}

/**
Expand Down

0 comments on commit 7e60abd

Please sign in to comment.