From 66836a5804ec2f8304ac1782f6ec619d1f408bc0 Mon Sep 17 00:00:00 2001 From: Emanuel Lupi Date: Fri, 1 Nov 2024 00:39:24 -0300 Subject: [PATCH] remove unnesessary ternary if. --- django_mongodb/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_mongodb/query.py b/django_mongodb/query.py index f952c9aba..92ad9e3e2 100644 --- a/django_mongodb/query.py +++ b/django_mongodb/query.py @@ -289,7 +289,7 @@ def where_node(self, compiler, connection): if len(children_mql) == 1: mql = children_mql[0] elif len(children_mql) > 1: - mql = {operator: children_mql} if children_mql else {} + mql = {operator: children_mql} else: mql = {}