Skip to content

Commit fc78ab1

Browse files
committed
Reduce isShardedCluster to a one-liner
1 parent a985b3e commit fc78ab1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/FunctionalTestCase.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,7 @@ protected function isReplicaSet()
308308

309309
protected function isShardedCluster()
310310
{
311-
if ($this->getPrimaryServer()->getType() == Server::TYPE_MONGOS) {
312-
return true;
313-
}
314-
315-
return false;
311+
return $this->getPrimaryServer()->getType() == Server::TYPE_MONGOS;
316312
}
317313

318314
protected function isShardedClusterUsingReplicasets()

0 commit comments

Comments
 (0)