diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2016-12-18 13:32:19 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-12-18 13:32:19 +0200 |
commit | 1fd67174a0769c467108236362ba53d98753a06c (patch) | |
tree | 2b91e62e455a3b55d2b27720a075e0e12a563445 /astroid/transforms.py | |
parent | 49c9dcfd103fdf28b37f686a14be755ed1ff1058 (diff) | |
download | astroid-git-1fd67174a0769c467108236362ba53d98753a06c.tar.gz |
Remove occurrences of no-else-return and consider-using-ternary
Diffstat (limited to 'astroid/transforms.py')
-rw-r--r-- | astroid/transforms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/transforms.py b/astroid/transforms.py index 9914ea29..852b9854 100644 --- a/astroid/transforms.py +++ b/astroid/transforms.py @@ -57,8 +57,8 @@ class TransformVisitor(object): return [self._visit_generic(child) for child in node] elif isinstance(node, tuple): return tuple(self._visit_generic(child) for child in node) - else: - return self._visit(node) + + return self._visit(node) def register_transform(self, node_class, transform, predicate=None): """Register `transform(node)` function to be applied on the given |