Skip to content

Commit c52973d

Browse files
committed
Fix useless call
1 parent 13f2431 commit c52973d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

benchmark/Extension/EnvironmentProvider.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@ public function isApplicable(): bool
2626

2727
public function getInformation(): Information
2828
{
29-
$client = Utils::getClient();
30-
$client->getManager()->selectServer();
29+
$manager = Utils::getClient()->getManager();
3130

3231
return new Information('mongodb', array_merge(
3332
$this->getUri(),
34-
$this->getServerInfo($client->getManager()),
35-
$this->getBuildInfo($client->getManager()),
33+
$this->getServerInfo($manager),
34+
$this->getBuildInfo($manager),
3635
));
3736
}
3837

0 commit comments

Comments
 (0)