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/rebuilder.py | |
parent | 49c9dcfd103fdf28b37f686a14be755ed1ff1058 (diff) | |
download | astroid-git-1fd67174a0769c467108236362ba53d98753a06c.tar.gz |
Remove occurrences of no-else-return and consider-using-ternary
Diffstat (limited to 'astroid/rebuilder.py')
-rw-r--r-- | astroid/rebuilder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/rebuilder.py b/astroid/rebuilder.py index e898c16e..e903fff2 100644 --- a/astroid/rebuilder.py +++ b/astroid/rebuilder.py @@ -96,8 +96,8 @@ def _visit_or_none(node, attr, visitor, parent, visit='visit', value = getattr(node, attr, None) if value: return getattr(visitor, visit)(value, parent, **kws) - else: - return None + + return None def _get_context(node): |