Created
May 15, 2015 15:09
-
-
Save jacquerie/7840d20e2b0633314a33 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def bad_nested_ifs(self, value): | |
foo = self.get(value, None) | |
if foo: | |
bar = foo.get('bar', None) | |
if bar: | |
baz = bar.get('baz', None) | |
if baz: | |
pass # Do something with baz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment