Skip to content

Commit

Permalink
remove useless try catch that is now useless
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-rolland committed Jan 27, 2025
1 parent fe6efe2 commit 129ef43
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions classes/Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -1129,13 +1129,7 @@ private static function getHookModuleFilter()
$serviceContainer = ContainerBuilder::getContainer('front', _PS_MODE_DEV_);
}

try {
$hookModuleFilter = $serviceContainer->get(HookModuleFilter::class);
} catch (Exception $e) {
return null;
}

return $hookModuleFilter;
return $serviceContainer->get(HookModuleFilter::class);
}

/**
Expand Down

0 comments on commit 129ef43

Please sign in to comment.