diff options
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> | 2017-02-07 22:56:38 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-03-01 23:21:54 +0100 |
commit | a07e47a47f57646d9b18aebd47dbfee667e19986 (patch) | |
tree | 5f9de7b2d409e62ba0087a84a06b13ef93dd9f5d /package/python-cherrypy/python-cherrypy.hash | |
parent | 5252d50b68d1af2f3d8afdec53e1417a4d8be4ee (diff) | |
download | buildroot-a07e47a47f57646d9b18aebd47dbfee667e19986.tar.gz buildroot-a07e47a47f57646d9b18aebd47dbfee667e19986.zip |
toolchain-external: reduce nesting in copy_toolchain_sysroot
As discussed with Thomas Petazzoni, we can reduce the nesting level by early
returning on an invalid iteration.
I did not move the 'else' case (the common case) outside the if-else because
it would make the code less symmetrical and IMO makes it _less_ clear.
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/python-cherrypy/python-cherrypy.hash')
0 files changed, 0 insertions, 0 deletions