Skip to content

Commit

Permalink
[fix] removed useless check
Browse files Browse the repository at this point in the history
  • Loading branch information
eikichi18 committed Sep 4, 2018
1 parent 6cd37f4 commit 7091804
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plone/app/querystring/queryparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ def _afterRelativeDate(context, row):


def _pathByRoot(root, context, row):
operator = row.operator
values = row.values
depth = None
if '::' in values:
Expand All @@ -299,8 +298,6 @@ def _pathByRoot(root, context, row):
# when a depth value is specified, a trailing slash matters on the
# query
values = values.rstrip('/')
if operator == '_relativePath':
values = values.rstrip('/')
query['query'] = [values]
return {row.index: query}

Expand Down Expand Up @@ -339,7 +336,7 @@ def _relativePath(context, row):

row = Row(index=row.index,
operator=row.operator,
values='/'.join(obj.getPhysicalPath()) + '/' + depthstr)
values='/'.join(obj.getPhysicalPath()) + depthstr)

return _absolutePath(context, row)

Expand Down

0 comments on commit 7091804

Please sign in to comment.