mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02: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:
@@ -623,9 +623,7 @@ 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,
|
|
||||||
# skip this board and continue.
|
|
||||||
# Record the failed board.
|
# Record the failed board.
|
||||||
self.failed_boards.append(self.defconfig)
|
self.failed_boards.append(self.defconfig)
|
||||||
self.state = STATE_IDLE
|
self.state = STATE_IDLE
|
||||||
|
Reference in New Issue
Block a user