Skip to content

Commit 75d53f8

Browse files
committed
Simplify if.
1 parent e5beb83 commit 75d53f8

File tree

1 file changed

+1
-1
lines changed
  • django_mongodb_backend/fields

1 file changed

+1
-1
lines changed

django_mongodb_backend/fields/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
def build_json_mql_path(lhs, key_transforms, as_path=False):
2525
# Build the MQL path using the collected key transforms.
26-
if as_path and lhs:
26+
if as_path:
2727
return ".".join(chain([lhs], key_transforms))
2828
result = lhs
2929
for key in key_transforms:

0 commit comments

Comments
 (0)