Skip to content

Commit fd194f2

Browse files
committed
address review
1 parent ee955f1 commit fd194f2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pymongo/topology_description.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,7 @@ def apply_selector(
325325
return [description] if description else []
326326

327327
# Primary selection fast path.
328-
if (
329-
custom_selector is None
330-
and self.topology_type == TOPOLOGY_TYPE.ReplicaSetWithPrimary
331-
and type(selector) is Primary
332-
):
328+
if self.topology_type == TOPOLOGY_TYPE.ReplicaSetWithPrimary and type(selector) is Primary:
333329
for sd in self._server_descriptions.values():
334330
if sd.server_type == SERVER_TYPE.RSPrimary:
335331
sds = [sd]

0 commit comments

Comments
 (0)