summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/filters/aligned_indent.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sqlparse/filters/aligned_indent.py b/sqlparse/filters/aligned_indent.py
index 5921a3b..ed8a3c5 100644
--- a/sqlparse/filters/aligned_indent.py
+++ b/sqlparse/filters/aligned_indent.py
@@ -41,7 +41,7 @@ class AlignedIndentFilter(object):
def _process_parenthesis(self, tlist):
if not tlist.token_next_by(m=(T.DML, 'SELECT')):
# if this isn't a subquery, don't re-indent
- return tlist
+ return
# add two for the space and parens
sub_indent = self.indent + self._max_kwd_len + 2
@@ -77,7 +77,6 @@ class AlignedIndentFilter(object):
# process any sub-sub statements (like case statements)
for sgroup in tlist.get_sublists():
self._process(sgroup)
- return tlist
def _process_case(self, tlist):
base_offset = self.indent + self._max_kwd_len + len('case ')