Skip to content

Commit dd9bfef

Browse files
committed
Add a check to the builder class
1 parent abf1b30 commit dd9bfef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Server/Builder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,7 @@ public function build(): Server
524524

525525
if (null !== $this->discoveryBasePath) {
526526
$discoverer = $this->discoverer ?? $this->createDiscoverer($logger);
527-
if (null !== $discoverer) {
528-
$loaders[] = new DiscoveryLoader($this->discoveryBasePath, $this->discoveryScanDirs, $this->discoveryExcludeDirs, $discoverer);
529-
}
527+
$loaders[] = new DiscoveryLoader($this->discoveryBasePath, $this->discoveryScanDirs, $this->discoveryExcludeDirs, $discoverer);
530528
}
531529

532530
foreach ($loaders as $loader) {

0 commit comments

Comments
 (0)