mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
tools: moveconfig: remove redundant else: after sys.exit()
Nesting by "else:" is not generally useful after such statements as return, break, sys.exit(), etc. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
6ff36d2174
commit
ff8725bbe0
1 changed files with 5 additions and 7 deletions
|
@ -623,13 +623,11 @@ class Slot:
|
||||||
COLOR_LIGHT_CYAN, errout)
|
COLOR_LIGHT_CYAN, errout)
|
||||||
if self.options.exit_on_error:
|
if self.options.exit_on_error:
|
||||||
sys.exit("Exit on error.")
|
sys.exit("Exit on error.")
|
||||||
else:
|
# If --exit-on-error flag is not set, skip this board and continue.
|
||||||
# If --exit-on-error flag is not set,
|
# Record the failed board.
|
||||||
# skip this board and continue.
|
self.failed_boards.append(self.defconfig)
|
||||||
# Record the failed board.
|
self.state = STATE_IDLE
|
||||||
self.failed_boards.append(self.defconfig)
|
return True
|
||||||
self.state = STATE_IDLE
|
|
||||||
return True
|
|
||||||
|
|
||||||
if self.state == STATE_AUTOCONF:
|
if self.state == STATE_AUTOCONF:
|
||||||
self.parser.update_dotconfig(self.defconfig)
|
self.parser.update_dotconfig(self.defconfig)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue