Skip to content

Commit 1311c43

Browse files
committed
Remove useless check.
1 parent ce02be3 commit 1311c43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def get_combinator_queries(self):
461461
# Raise EmptyResultSet if all the combinator queries are empty.
462462
if not parts:
463463
raise EmptyResultSet
464-
combinator_pipeline = parts.pop(0)[0].get_pipeline() if parts else None
464+
combinator_pipeline = parts.pop(0)[0].get_pipeline()
465465
if self.query.combinator == "union":
466466
for part, collection in parts:
467467
combinator_pipeline.append(

0 commit comments

Comments
 (0)