Skip to content

Commit 3c5bae4

Browse files
authored
remove unnecessary ternary in where_node()
1 parent a06efe3 commit 3c5bae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def where_node(self, compiler, connection):
289289
if len(children_mql) == 1:
290290
mql = children_mql[0]
291291
elif len(children_mql) > 1:
292-
mql = {operator: children_mql} if children_mql else {}
292+
mql = {operator: children_mql}
293293
else:
294294
mql = {}
295295

0 commit comments

Comments
 (0)