Skip to content

Commit

Permalink
Remove redundant asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
XedinUnknown committed Mar 4, 2021
1 parent 48a957b commit 444645b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ModularModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public function setup(): ServiceProviderInterface
{
$providers = [];
foreach ($this->modules as $module) {
assert($module instanceof ModuleInterface);
$providers[] = $module->setup();
}

Expand All @@ -47,7 +46,6 @@ public function setup(): ServiceProviderInterface
public function run(ContainerInterface $c): void
{
foreach ($this->modules as $module) {
assert($module instanceof ModuleInterface);
$module->run($c);
}
}
Expand Down

0 comments on commit 444645b

Please sign in to comment.